aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2018-05-03 12:15:14 +0000
committerDario Lombardo <lomato@gmail.com>2018-05-05 16:19:01 +0000
commit84c200af93d10796dfc49fb9112feca17577e8c2 (patch)
treec8f20e5f530eaae57989e1079545ba8d90aa7ed4 /.travis.yml
parent4c14ac075403e3f5ea5709501918c08e45272439 (diff)
travis: update to gcc-8 and clang-5
Change-Id: I538f87253241ce3b399bf638514df73447622219 Reviewed-on: https://code.wireshark.org/review/27337 Reviewed-by: Dario Lombardo <lomato@gmail.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml13
1 files changed, 9 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 7dfaa67a11..3aabd64939 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,6 +15,14 @@ matrix:
# Exclude gcc build (Need some work) with osx
- os: osx
compiler: gcc
+addons:
+ apt:
+ sources:
+ - ubuntu-toolchain-r-test
+ - llvm-toolchain-trusty-5.0
+ packages:
+ - g++-8
+ - clang-5.0
before_install:
- echo $TRAVIS_OS_NAME
- $CC --version
@@ -22,10 +30,7 @@ before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./tools/macos-setup-brew.sh; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then PATH=/usr/local/opt/qt5/bin:$PATH; fi
# linux
- - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test; fi
- - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update -qq; fi
- # libstdc++-4.8 is needed by Clang to build
- - if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get -qq install libstdc++-4.8-dev; fi
+ - if [ "$TRAVIS_OS_NAME" == "linux" ]; then if [ "$CXX" = "g++" ]; then export CXX="g++-8" CC="gcc-8"; fi ; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ./tools/debian-setup.sh --install-optional -qq; fi
- $CC --version
before_script: