Update the compilers in travis file

This commit is contained in:
Daniel Chappuis 2018-03-15 07:32:51 +01:00
parent 62bd3bc115
commit 36568f0503

View File

@ -9,27 +9,26 @@ matrix:
sources: sources:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
packages: packages:
- g++-4.9 - g++-7
env: env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
# OS X / GCC # OS X / GCC
- os: osx - os: osx
osx_image: xcode8 osx_image: xcode8
env: env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" - MATRIX_EVAL="brew install gcc && CC=gcc-7 && CXX=g++-7"
# Linux / Clang # Linux / Clang
- os: linux - os: linux
addons: addons:
apt: apt:
sources: sources:
- ubuntu-toolchain-r-test - llvm-toolchain-trusty-5.0
- llvm-toolchain-precise-3.6
packages: packages:
- clang-3.6 - clang-5.0
env: env:
- MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6" - MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
# OS X / Clang # OS X / Clang
- os: osx - os: osx
@ -56,3 +55,9 @@ script:
# Build in release mode with single precision # Build in release mode with single precision
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release —DDOUBLE_PRECISION_ENABLED=False -DCOMPILE_TESTS=True ../ - cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release —DDOUBLE_PRECISION_ENABLED=False -DCOMPILE_TESTS=True ../
- make && make test ARGS="-V" - make && make test ARGS="-V"
# Build in debug mode with logs and profiler enabled
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug —DPROFILING_ENABLED=True -DLOGS_ENABLED=True
- make
# Build in release mode with logs and profiler enabled
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release —DPROFILING_ENABLED=True -DLOGS_ENABLED=True
- make