Skip to content

Commit

Permalink
Trying to fix travis builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ybainier committed Oct 15, 2019
1 parent 4832cdf commit 9fb6b17
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,47 @@ sudo: required

language: cpp

dist: trusty

os:
- linux
- osx

compiler:
- gcc
- clang
matrix:
exclude:
- os: osx
compiler: gcc

addons:
apt:
sources:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- clang
- cmake
packages:
- g++-5
env: COMPILER=g++-5


matrix:
exclude:
- os: osx
compiler: gcc
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- g++-5 # need at least gcc 5 because clang uses gcc stl
- clang-3.8
env: COMPILER=clang++-3.8

before_install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
sudo apt-get install libboost-all-dev;
fi

install:
# g++
- if [ "$CXX" == "g++" ]; then export CXX="g++-4.8"; fi

before_script:
- mkdir build
- cd build
- cmake ..
- cmake -DCMAKE_CXX_COMPILER=$COMPILER -DCMAKE_BUILD_TYPE=Release ..

script:
script:s
- make -j 3

0 comments on commit 9fb6b17

Please sign in to comment.