2017-11-08 19:51:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# prep things so we can build for Linux
|
|
|
|
# we have a custom built Qt some gives us just what we need, including QtWebKit
|
2017-11-09 20:38:04 +00:00
|
|
|
#
|
|
|
|
# this is built from the latest version as of 2017-11-09 in the 5.9 branch and
|
|
|
|
# therefore calls itself Qt-5.9.3
|
2017-11-08 19:51:24 +00:00
|
|
|
|
2017-11-09 20:41:30 +00:00
|
|
|
set -x
|
|
|
|
|
2017-11-11 06:40:32 +00:00
|
|
|
# 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
|
|
|
|
|
2017-11-09 20:38:04 +00:00
|
|
|
export QT_ROOT=$PWD/Qt/5.9.3
|
2017-11-08 19:51:24 +00:00
|
|
|
rm -rf Qt
|
2017-11-09 20:38:04 +00:00
|
|
|
mkdir -p $QT_ROOT
|
2017-11-11 06:07:36 +00:00
|
|
|
wget -q http://subsurface-divelog.org/downloads/Qt-5.9.3-trusty.tar.xz
|
2017-11-09 20:38:04 +00:00
|
|
|
tar -xJ -C $QT_ROOT -f Qt-5.9.3-trusty.tar.xz
|
2017-11-08 19:51:24 +00:00
|
|
|
|
2017-11-09 20:41:30 +00:00
|
|
|
sudo ln -s $QT_ROOT /usr/local/Qt-5.9.3
|
|
|
|
|
2017-11-08 19:51:24 +00:00
|
|
|
# TestPreferences uses gui calls, so run a xvfb so it has something to talk to
|
|
|
|
export DISPLAY=:99.0
|
|
|
|
sh -e /etc/init.d/xvfb start
|
|
|
|
|