-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
87 lines (81 loc) · 2.06 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
language: cpp
matrix:
include:
- os: osx
osx_image: xcode6.4
env: COMPILER='clang++'
- os: osx
osx_image: xcode7
env: COMPILER='clang++'
- os: osx
osx_image: xcode9.2
env: COMPILER='clang++'
- env: COMPILER=g++-4.9 COVERAGE=coverage GCOV=gcov-4.9
addons:
apt:
packages:
- g++-4.9
sources:
- ubuntu-toolchain-r-test
- env: COMPILER=g++-5
addons:
apt:
packages:
- g++-5
sources:
- ubuntu-toolchain-r-test
- env: COMPILER=g++-6
addons:
apt:
packages:
- g++-6
sources:
- ubuntu-toolchain-r-test
- env: COMPILER=g++-7
addons:
apt:
packages:
- g++-7
sources:
- ubuntu-toolchain-r-test
- env: COMPILER='clang++-3.9'
addons:
apt:
packages:
- clang-3.9
- env: COMPILER='clang++-4.0'
addons:
apt:
packages:
- clang-4.0
sources:
- llvm-toolchain-trusty-4.0
- env: COMPILER='clang++-5.0'
addons:
apt:
packages:
- clang-5.0
sources:
- llvm-toolchain-trusty-5.0
before_install:
- cmake --version
- g++ --version
- clang++ --version
- if [ $TRAVIS_OS_NAME == linux ]; then
apt-cache search "clang" | egrep "^clang-[0-9\.]+ ";
apt-cache search "g++" | egrep "^g\+\+-[0-9\.]+ ";
fi
install:
- if test -n "$COVERAGE"; then pip install --user cpp-coveralls; fi
# not necessary aymore, cmake is modern
# - if [ $TRAVIS_OS_NAME == osx ]; then brew update > /dev/null ; brew upgrade cmake; fi
before_script:
- export CXX=$COMPILER
script:
- mkdir cmake-build; cd cmake-build
- cmake .. -DCMAKE_CXX_COMPILER=$CXX -DCOVERAGE=$COVERAGE
- make VERBOSE=1 $COVERAGE
- make all $COVERAGE
- cd ..
after_success:
- if test -n "$COVERAGE"; then coveralls --verbose --gcov-options '\-lp' --gcov '$GCOV' -E cmake-build/CMakefiles; fi