diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2018-07-10 16:03:54 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-07-10 19:41:43 -0700 |
commit | 0a4dcd59b0e1f176630280ea916c296c11633f56 (patch) | |
tree | 47bcb3e10a98cf61a816df168eb3fdc952a9203b | |
parent | 3b8c576d9576d6af6ab4b6ac1909bd446a5c714a (diff) | |
download | subsurface-0a4dcd59b0e1f176630280ea916c296c11633f56.tar.gz |
Travis: add Qt 5.6 testing
This is done via OpenSUSE Leap/42.3 which seemed the easiest way to
get a 5.6 based distro.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | .travis.yml | 8 | ||||
-rw-r--r-- | scripts/qt56/after_success.sh | 3 | ||||
-rw-r--r-- | scripts/qt56/before_install.sh | 20 | ||||
-rw-r--r-- | scripts/qt56/travisbuild.sh | 9 |
4 files changed, 39 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index 4f4ae3593..75469cafd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -112,7 +112,13 @@ matrix: # - 3pp - env: SUBSURFACE_PLATFORM="qt55" - # Currently hard coded to arm + os: linux + language: c++ + filter_secrets: false + services: + - docker + + - env: SUBSURFACE_PLATFORM="qt56" os: linux language: c++ filter_secrets: false diff --git a/scripts/qt56/after_success.sh b/scripts/qt56/after_success.sh new file mode 100644 index 000000000..8320894eb --- /dev/null +++ b/scripts/qt56/after_success.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +echo "Build with Qt 5.6 succeeded" diff --git a/scripts/qt56/before_install.sh b/scripts/qt56/before_install.sh new file mode 100644 index 000000000..ed69f1087 --- /dev/null +++ b/scripts/qt56/before_install.sh @@ -0,0 +1,20 @@ +#!/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 opensuse:42.3 /bin/sleep 60m + +# Subsurface build dependencies +docker exec -t builder zypper refresh +docker exec -t builder zypper --non-interactive install \ + git gcc-c++ make autoconf automake libtool cmake libzip-devel \ + libssh2-devel libxml2-devel libxslt-devel sqlite3-devel libusb-1_0-devel \ + libqt5-linguist-devel libqt5-qttools-devel libQt5WebKitWidgets-devel \ + libqt5-qtbase-devel libQt5WebKit5-devel libqt5-qtsvg-devel \ + libqt5-qtscript-devel libqt5-qtdeclarative-devel \ + libqt5-qtconnectivity-devel libqt5-qtlocation-devel libcurl-devel diff --git a/scripts/qt56/travisbuild.sh b/scripts/qt56/travisbuild.sh new file mode 100644 index 000000000..060d36d46 --- /dev/null +++ b/scripts/qt56/travisbuild.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +set -x +set -e + +docker exec -t builder subsurface/scripts/build.sh -desktop 2>&1 | tee build.log +# fail the build if we didn't create the target binary +grep /workspace/install-root/bin/subsurface build.log + |