-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
38 lines (35 loc) · 1.04 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
language: c++
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
- lcov
- gcovr
env:
- CXX_COMPILER=g++-4.9
- C_COMPILER=gcc-4.9
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- lcov
- gcovr
env:
- CXX_COMPILER=g++-5
- C_COMPILER=gcc-5
script:
- cmake -E make_directory build && cmake -E chdir build cmake -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER -DCOVERAGE=1 -DCMAKE_BUILD_TYPE=Debug ..
- cmake --build build -- all coverage
after_success:
- cd ${TRAVIS_BUILD_DIR}
- lcov --directory build --capture --output-file coverage.info
- lcov --remove coverage.info '/usr/*' 'gtest/*' 'gmock/*' 'tests/*' --output-file coverage.info
- bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"