From d9c6f30954bc6199d3f7ae303f181413a5bf9213 Mon Sep 17 00:00:00 2001 From: Hugues Evrard Date: Thu, 18 May 2017 19:37:01 +0100 Subject: [PATCH] Update Travis file to request GCC 4.9 The JSON library requires at least GCC 4.9 --- .travis.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6f48eb2..e830977 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,14 @@ 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 @@ -18,6 +26,7 @@ matrix: 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 script: - CMAKE_BUILD_TYPE=Debug buildscripts/2-build-travis.sh @@ -26,5 +35,3 @@ script: after_success: - CMAKE_BUILD_TYPE=Debug buildscripts/3-release-travis.sh - CMAKE_BUILD_TYPE=Release buildscripts/3-release-travis.sh - -