Edit travis configuration

This commit is contained in:
Daniel Chappuis 2017-07-03 22:01:36 +02:00
parent 425222b4fd
commit 04a0efafaf

View File

@ -1,20 +1,45 @@
language: cpp language: cpp
os: matrix:
- linux
- osx # Linux / GCC
compiler: include:
- gcc - os: linux
- clang
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
addons: addons:
apt: apt:
sources: sources:
- ubuntu-toolchain-r-test - ubuntu-toolchain-r-test
packages: packages:
- gcc-4.8 - g++-4.9
- g++-4.8 env:
- clang - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
# OS X / GCC
include:
- os: osx
osx_image: xcode8
env:
- MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
# Linux / Clang
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.6
packages:
- clang-3.6
env:
- MATRIX_EVAL="CC=clang-3.6 && CXX=clang++-3.6"
# OS X / Clang
include:
- os: osx
osx_image: xcode8
before_install:
- eval "${MATRIX_EVAL}"
branches: branches:
only: only:
- master - master