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 addons:
install: apt:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi sources:
addons: - ubuntu-toolchain-r-test
apt: packages:
sources: - g++-4.9
- ubuntu-toolchain-r-test env:
packages: - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9"
- gcc-4.8
- g++-4.8 # OS X / GCC
- clang 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