Skip to content

Commit

Permalink
Update travis config to force gcc 4.9
Browse files Browse the repository at this point in the history
The previous way did not work
  • Loading branch information
Hugues Evrard committed May 18, 2017
1 parent d9c6f30 commit 5733c71
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5733c71

Please sign in to comment.