mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
db64ec0af0
Travis only fetches the last 50 commits - which means that git describe will usually fail and our version numbers would end up being wrong. So let's fetch the whole repo and the tags as well to make sure that git describe works as expected by our tools. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
28 lines
790 B
Bash
28 lines
790 B
Bash
#!/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
|
|
|
|
# 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
|
|
|
|
export QT_ROOT=$PWD/Qt/5.9.3
|
|
rm -rf Qt
|
|
mkdir -p $QT_ROOT
|
|
wget -q http://subsurface-divelog.org/downloads/Qt-5.9.3-trusty.tar.xz
|
|
tar -xJ -C $QT_ROOT -f Qt-5.9.3-trusty.tar.xz
|
|
|
|
sudo ln -s $QT_ROOT /usr/local/Qt-5.9.3
|
|
|
|
# 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
|
|
|