diff --git a/.travis.yml b/.travis.yml index c42b01a..d30126c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,8 @@ language: cpp dist: trusty sudo: required before_install: +- eval "${MATRIX_EVAL}" +- ${CXX} --version - openssl aes-256-cbc -K $encrypted_eba2f7543984_key -iv $encrypted_eba2f7543984_iv -in travis/travisci_builder_id_key.enc -out travis/travisci_builder_id_key -d - chmod 600 travis/travisci_builder_id_key @@ -23,18 +25,21 @@ deploy: on: condition: ( "$TRAVIS_EVENT_TYPE" = "cron" ) env: - - PLATFORM="native_dyn" - - PLATFORM="native_static" - - PLATFORM="win32_dyn" - - PLATFORM="win32_static" - - PLATFORM="armhf_dyn" - - PLATFORM="armhf_static" - - PLATFORM="android_arm" - - PLATFORM="android_arm64" - - PLATFORM="android_mips" - - PLATFORM="android_mips64" - - PLATFORM="android_x86" - - PLATFORM="android_x86_64" + global: + - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5" + matrix: + - PLATFORM="native_dyn" + - PLATFORM="native_static" + - PLATFORM="win32_dyn" + - PLATFORM="win32_static" + - PLATFORM="armhf_dyn" + - PLATFORM="armhf_static" + - PLATFORM="android_arm" + - PLATFORM="android_arm64" + - PLATFORM="android_mips" + - PLATFORM="android_mips64" + - PLATFORM="android_x86" + - PLATFORM="android_x86_64" notifications: irc: channels: @@ -43,3 +48,8 @@ notifications: on_failure: always addons: ssh_known_hosts: download.kiwix.org + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-5