summaryrefslogtreecommitdiffstats
path: root/scripts/qt57/before_install.sh
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-11 12:29:23 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-11 13:49:25 -0700
commit8fa9eabb47f451e60af765f007cca2af6def5222 (patch)
treecd40bb8b85996c3246f0f125a0fe07659a50283a /scripts/qt57/before_install.sh
parent6a9a185ffcb847cd900dadf05760602f1079269a (diff)
downloadsubsurface-8fa9eabb47f451e60af765f007cca2af6def5222.tar.gz
Travis: add Qt 5.7 testing
This is done via Fedora 26 which seemed the easiest way to get a 5.7 based distro. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts/qt57/before_install.sh')
-rw-r--r--scripts/qt57/before_install.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/qt57/before_install.sh b/scripts/qt57/before_install.sh
new file mode 100644
index 000000000..6abec0036
--- /dev/null
+++ b/scripts/qt57/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:26 /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