-
Notifications
You must be signed in to change notification settings - Fork 158
/
.travis.yml
executable file
·50 lines (45 loc) · 1.6 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
language: cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- g++-6
- clang-5.0
matrix:
include:
- os: linux
env: CXX_COMPILER=g++-6 BUILD_TYPE=Debug
- os: linux
env: CXX_COMPILER=g++-6 BUILD_TYPE=Release
- os: linux
env: CXX_COMPILER=clang++-5.0 BUILD_TYPE=Debug
- os: linux
env: CXX_COMPILER=clang++-5.0 BUILD_TYPE=Release
- os: osx
osx_image: xcode8.3
env: CXX_COMPILER=clang++ BUILD_TYPE=Debug
- os: osx
osx_image: xcode8.3
env: CXX_COMPILER=clang++ BUILD_TYPE=Release
- os: linux
env: CXX_COMPILER=g++-6 BUILD_TYPE=Debug COVERAGE_FLAGS="--coverage"
script:
- mkdir build
- cd build
- >
cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-DCMAKE_CXX_FLAGS="$COVERAGE_FLAGS" \
-DCMAKE_CXX_COMPILER=${CXX_COMPILER} \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCTEST_DROP_SITE_CDASH=TRUE \
-DDROP_METHOD="http" \
-DDROP_SITE="my.cdash.org" \
-DDROP_LOCATION="/submit.php?project=mio" \
-DBUILDNAME="$(uname -s)-${CXX_COMPILER}-${BUILD_TYPE}" ..
- ctest -VV -M Experimental -T Start \
&& ctest -VV -M Experimental -T Build \
&& ctest -VV -M Experimental -T Test
- if [[ -n "${COVERAGE_FLAGS+x}" ]]; then ctest -VV -M Experimental -T Coverage; fi
- ctest -VV -M Experimental -T Submit