2018-05-19 22:07:44 +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
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
2018-06-17 11:20:13 +00:00
|
|
|
# make sure we use a new enough compiler
|
|
|
|
export CC=gcc-5
|
|
|
|
export CXX=g++-5
|
|
|
|
|
2018-05-19 22:07:44 +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
|
2023-12-07 12:00:32 +00:00
|
|
|
git describe --match "v[0-9]*"
|
2018-05-19 22:07:44 +00:00
|
|
|
|
|
|
|
. /opt/qt510/bin/qt510-env.sh
|
|
|
|
export QT_ROOT=/opt/qt510
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|