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,48 +1,49 @@
language: cpp language: cpp
os:
- linux
- osx
matrix: matrix:
include: include:
- compiler: gcc - os: linux
addons: - compiler: gcc
apt: addons:
sources: apt:
- ubuntu-toolchain-r-test sources:
packages: - ubuntu-toolchain-r-test
- g++-4.9 packages:
env: COMPILER=g++-4.9 - g++-4.9
- compiler: gcc env:
addons: - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
apt: - compiler: gcc
sources: addons:
- ubuntu-toolchain-r-test apt:
packages: sources:
- g++-7 - ubuntu-toolchain-r-test
env: COMPILER=g++-7 packages:
- compiler: clang - g++-7
addons: env:
apt: - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
sources: - os: osx
- ubuntu-toolchain-r-test - compiler: clang
- llvm-toolchain-precise-3.6 addons:
packages: apt:
- clang-3.6 sources:
env: - ubuntu-toolchain-r-test
- MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6" - llvm-toolchain-precise-3.6
- compiler: clang packages:
addons: - clang-3.6
apt: env:
sources: - MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6"
- llvm-toolchain-trusty-5.0 - compiler: clang
packages: addons:
- clang-5.0 apt:
env: sources:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0" - llvm-toolchain-trusty-5.0
packages:
- clang-5.0
env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
before_script: before_install:
- eval "${MATRIX_EVAL}"
script: script:
- cmake --version - cmake --version