aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/qt59
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-11 12:31:34 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-11 13:49:25 -0700
commit45c19fd11ebf41c19f51eff067646551ab60e5bf (patch)
treec8fdb56f7d16ec2c01987907c0a8125dc3a951a5 /scripts/qt59
parent8fa9eabb47f451e60af765f007cca2af6def5222 (diff)
downloadsubsurface-45c19fd11ebf41c19f51eff067646551ab60e5bf.tar.gz
Travis: add Qt 5.9 testing
This is done via Fedora 27 which seemed the easiest way to get a 5.9 based distro. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts/qt59')
-rw-r--r--scripts/qt59/after_success.sh3
-rw-r--r--scripts/qt59/before_install.sh20
-rw-r--r--scripts/qt59/travisbuild.sh9
3 files changed, 32 insertions, 0 deletions
diff --git a/scripts/qt59/after_success.sh b/scripts/qt59/after_success.sh
new file mode 100644
index 000000000..ce84c003a
--- /dev/null
+++ b/scripts/qt59/after_success.sh
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+echo "Build with Qt 5.9 succeeded"
diff --git a/scripts/qt59/before_install.sh b/scripts/qt59/before_install.sh
new file mode 100644
index 000000000..83a8ba441
--- /dev/null
+++ b/scripts/qt59/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 fedora:27 /bin/sleep 60m
+
+# Subsurface build dependencies
+docker exec -t builder zypper refresh
+docker exec -t builder dnf install -y \
+ git gcc-c++ make autoconf automake libtool cmake bzip2-devel \
+ libzip-devel libxml2-devel libxslt-devel libsqlite3x-devel \
+ libudev-devel libusbx-devel libcurl-devel libssh2-devel\
+ qt5-qtbase-devel qt5-qtdeclarative-devel qt5-qtscript-devel \
+ qt5-qtwebkit-devel qt5-qtsvg-devel qt5-qttools-devel \
+ qt5-qtconnectivity-devel qt5-qtlocation-devel
diff --git a/scripts/qt59/travisbuild.sh b/scripts/qt59/travisbuild.sh
new file mode 100644
index 000000000..060d36d46
--- /dev/null
+++ b/scripts/qt59/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
+