mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Travis: test build against Qt 5.5
We do this in a docker environment to make things fast and easy. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
99bc940551
commit
bca7f8ed61
4 changed files with 41 additions and 0 deletions
|
@ -63,6 +63,14 @@ matrix:
|
|||
# directories:
|
||||
# - 3pp
|
||||
|
||||
- env: SUBSURFACE_PLATFORM="qt55"
|
||||
# Currently hard coded to arm
|
||||
os: linux
|
||||
language: c++
|
||||
filter_secrets: false
|
||||
services:
|
||||
- docker
|
||||
|
||||
before_install:
|
||||
- source ${TRAVIS_BUILD_DIR}/scripts/${SUBSURFACE_PLATFORM}/before_install.sh
|
||||
|
||||
|
|
3
scripts/qt55/after_success.sh
Normal file
3
scripts/qt55/after_success.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Build with Qt 5.5 succeeded"
|
23
scripts/qt55/before_install.sh
Normal file
23
scripts/qt55/before_install.sh
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Travis only pulls shallow repos. But that messes with git describe.
|
||||
# Sorry Travis, fetching the whole thing and the tags as well...
|
||||
git fetch --unshallow
|
||||
git pull --tags
|
||||
git describe
|
||||
|
||||
# Ugly, but keeps it running during the build
|
||||
docker run -v $PWD:/workspace/subsurface --name=builder -w /workspace -d ubuntu:16.04 /bin/sleep 60m
|
||||
|
||||
# Subsurface build dependencies
|
||||
docker exec -t builder apt-get update
|
||||
docker exec -t builder apt-get install -y wget unzip bzip2 \
|
||||
git g++ make autoconf automake libtool cmake pkg-config \
|
||||
libxml2-dev libxslt1-dev libzip-dev libsqlite3-dev \
|
||||
libusb-1.0-0-dev libssl-dev \
|
||||
qt5-default qt5-qmake qtchooser qttools5-dev-tools libqt5svg5-dev \
|
||||
libqt5webkit5-dev libqt5qml5 libqt5quick5 qtdeclarative5-dev \
|
||||
qtscript5-dev libssh2-1-dev libcurl4-openssl-dev qttools5-dev \
|
||||
qtconnectivity5-dev qtlocation5-dev qtpositioning5-dev \
|
||||
libcrypto++-dev libssl-dev qml-module-qtpositioning qml-module-qtlocation \
|
||||
qml-module-qtquick2
|
7
scripts/qt55/travisbuild.sh
Normal file
7
scripts/qt55/travisbuild.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
set -e
|
||||
|
||||
docker exec -t builder subsurface/scripts/build.sh -desktop
|
||||
|
Loading…
Reference in a new issue