-
Notifications
You must be signed in to change notification settings - Fork 333
/
Copy path.travis.yml
38 lines (36 loc) · 943 Bytes
/
.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
language: cpp
sudo: required
group: edge
cache:
- ccache
env:
global:
- USE_CCACHE=1
- CCACHE_SLOPPINESS=pch_defines,time_macros
- CCACHE_COMPRESS=1
- CCACHE_MAXSIZE=100M
matrix:
include:
- env: CONF=Release
compiler: gcc
addons:
apt:
packages: ['python-pip']
# coverage report
- env: CONF=Debug GCOV_FLAGS='--coverage'
compiler: gcc
addons:
apt:
packages: ['python-pip']
after_success:
- pip install --user cpp-coveralls
- coveralls -r .. --gcov-options '\-lp' -i code
before_script:
- ccache -s
- mkdir build
script:
- cd build
- cmake .. -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=$CONF -DCMAKE_CXX_FLAGS="$GCOV_FLAGS" -DCMAKE_EXE_LINKER_FLAGS=$GCOV_FLAGS && make -j4
- ctest -j 2 -V
notifications:
email: false