-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
47 lines (45 loc) · 1.18 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
sudo: false
language: cpp
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- g++-4.9
- cmake
- cmake-data
env:
- COMPILER='g++-4.9'
- os: linux
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports
packages:
- g++-5
- cmake
- cmake-data
env:
- COMPILER='g++-5'
- os: osx
osx_image: xcode8
env:
- COMPILER='clang++'
install:
- export CMAKE=cmake
- export CXX=$COMPILER
- $CMAKE --version
- $CXX --version
script:
- mkdir $CXX && cd $CXX
- $CMAKE -DCMAKE_CXX_COMPILER=$CXX -DLIB_POTASSCO_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-Wall -Wextra" ../
- make -j3 && make test CTEST_OUTPUT_ON_FAILURE=1
- $CMAKE -DCMAKE_CXX_COMPILER=$CXX -DLIB_POTASSCO_BUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Wall -Wextra" ../
- make -j3 && make test CTEST_OUTPUT_ON_FAILURE=1