From dee482b2dc90fe710e3a85df64868fd963d97372 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Mon, 4 Dec 2017 11:06:44 +0000 Subject: [PATCH] Compile using gcc-5 on native ubuntu. As dependencies prepared by kiwix-build are build using gcc-5 (kiwix/kiwix-build@7fc557d), we need to also compile libzim using gcc-5. --- .travis.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index a6aa5c56d..6906b3068 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,12 +2,24 @@ language: cpp dist: trusty sudo: required cache: ccache +before_install: +- eval "${MATRIX_EVAL}" +- ${CXX} --version install: travis/install_deps.sh script: travis/compile.sh env: - - PLATFORM="native_static" - - PLATFORM="native_dyn" - - PLATFORM="win32_static" - - PLATFORM="win32_dyn" - - PLATFORM="android_arm" - - PLATFORM="android_arm64" + global: + - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5" + matrix: + - PLATFORM="native_static" + - PLATFORM="native_dyn" + - PLATFORM="win32_static" + - PLATFORM="win32_dyn" + - PLATFORM="android_arm" + - PLATFORM="android_arm64" +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-5