From 5733c71c5d5e997de4630480cf569fd8847bf622 Mon Sep 17 00:00:00 2001 From: Hugues Evrard Date: Thu, 18 May 2017 20:12:41 +0100 Subject: [PATCH] Update travis config to force gcc 4.9 The previous way did not work --- .travis.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index e830977..32b6f21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,14 +5,6 @@ env: global: - CMAKE_GENERATOR="Unix Makefiles" CMAKE_OPTIONS=" " -addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - gcc-4.9 - - g++-4.9 - matrix: include: - os: linux @@ -23,10 +15,17 @@ matrix: osx_image: xcode7.3 env: BUILD_PLATFORM="Darwin-x64" +before_install: + # GCC 4.9 + - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test + - sudo apt-get update -qq + install: - buildscripts/1-install-deps-travis.sh - export PATH="/data/bin:$PATH" - - if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi + # GCC 4.9 + - sudo apt-get install -qq g++-4.9 + - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.9 90 script: - CMAKE_BUILD_TYPE=Debug buildscripts/2-build-travis.sh