Improved travisCI support

This commit is contained in:
Christophe Riccio 2018-01-09 20:01:02 +01:00
parent d9710786e5
commit 4a27705328

View File

@ -1,11 +1,8 @@
language: cpp language: cpp
os:
- linux
- osx
matrix: matrix:
include: include:
- os: linux
- compiler: gcc - compiler: gcc
addons: addons:
apt: apt:
@ -13,7 +10,8 @@ matrix:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
packages: packages:
- g++-4.9 - g++-4.9
env: COMPILER=g++-4.9 env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
- compiler: gcc - compiler: gcc
addons: addons:
apt: apt:
@ -21,7 +19,9 @@ matrix:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
packages: packages:
- g++-7 - g++-7
env: COMPILER=g++-7 env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- os: osx
- compiler: clang - compiler: clang
addons: addons:
apt: apt:
@ -42,7 +42,8 @@ matrix:
env: env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0" - MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
before_script: before_install:
- eval "${MATRIX_EVAL}"
script: script:
- cmake --version - cmake --version