-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
72 lines (61 loc) · 1.74 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: cpp
sudo: false
matrix:
include:
- os: linux
compiler: clang++
addons:
apt:
sources: ['boost-latest', 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7']
packages: ['cmake', 'clang-3.7', 'libboost1.55-all-dev']
env: CMAKE_BUILD_TYPE=DEBUG
- os: linux
compiler: clang++
addons:
apt:
sources: ['boost-latest', 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7']
packages: ['cmake', 'clang-3.7', 'libboost1.55-all-dev']
env: CMAKE_BUILD_TYPE=RELEASE
- os: linux
compiler: g++
addons:
apt:
sources: ['boost-latest', 'ubuntu-toolchain-r-test']
packages: ['cmake', 'g++-5', 'libboost1.55-all-dev']
env: CMAKE_BUILD_TYPE=DEBUG
- os: linux
compiler: g++
addons:
apt:
sources: ['boost-latest', 'ubuntu-toolchain-r-test']
packages: ['cmake', 'g++-5', 'libboost1.55-all-dev']
env: CMAKE_BUILD_TYPE=RELEASE
- os: osx
compiler: clang++
env: CMAKE_BUILD_TYPE=DEBUG
- os: osx
compiler: clang++
env: CMAKE_BUILD_TYPE=RELEASE
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update;
brew install llvm37;
brew outdated boost || brew upgrade boost;
fi
install:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
if [ "$CXX" = "clang++" ]; then
export CXX=clang++-3.7 CC=clang-3.7;
elif [ "$CXX" = "g++" ]; then
export CXX=g++-5 CC=gcc-5;
fi;
elif [ "$TRAVIS_OS_NAME" == "osx" ]; then
export CXX=clang++-3.7 CC=clang-3.7;
fi
before_script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} ..
script:
- make
- make test