summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-17 20:20:13 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-18 06:32:23 +0900
commitfca06fd865688012403dc2013689bdd9c784d342 (patch)
tree849685587f7b9c4b9dfd1d9ba44f4393b9d9646e
parentca84d96a50a4751432a6f6413547408346d95867 (diff)
downloadsubsurface-fca06fd865688012403dc2013689bdd9c784d342.tar.gz
Travis: build mobile on Linux with newer gcc
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--.travis.yml5
-rw-r--r--scripts/linux2/before_install.sh4
2 files changed, 8 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 20d4110f8..86fa3c99e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -58,12 +58,14 @@ matrix:
- env: SUBSURFACE_PLATFORM='linux2'
os: linux
dist: trusty
+ sudo: required
language: c++
addons:
apt:
sources:
- sourceline: 'ppa:beineri/opt-qt-5.10.1-trusty'
key_url: 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x10C56D0DE9977759'
+ - ubuntu-toolchain-r-test
packages:
- qt510base
- qt510connectivity
@@ -76,7 +78,8 @@ matrix:
- qt510svg
- qt510tools
- git
- - g++
+ - gcc-5
+ - g++-5
- make
- autoconf
- automake
diff --git a/scripts/linux2/before_install.sh b/scripts/linux2/before_install.sh
index 3b0ddceb4..2e82e1156 100644
--- a/scripts/linux2/before_install.sh
+++ b/scripts/linux2/before_install.sh
@@ -8,6 +8,10 @@
set -x
+# make sure we use a new enough compiler
+export CC=gcc-5
+export CXX=g++-5
+
# 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