-
Notifications
You must be signed in to change notification settings - Fork 128
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (29 loc) · 738 Bytes
/
.travis.yml
File metadata and controls
35 lines (29 loc) · 738 Bytes
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
dist: trusty
sudo: false
language: cpp
os: linux
compiler: g++
addons:
apt:
packages:
- lcov
script:
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
- make VERBOSE=1
- ctest --verbose
- cd ..
after_success:
- mkdir coverage
- cd coverage
- cmake -DCMAKE_BUILD_TYPE=Debug -DCOVERAGE=yes ..
- make
- ctest
- lcov --directory . --capture --output-file coverage.info
- lcov --remove coverage.info '/usr/*' --output-file coverage.info
- lcov --remove coverage.info '*googletest*' --output-file coverage.info
- lcov --remove coverage.info '*.t.cpp' --output-file coverage.info
- lcov --list coverage.info
- bash <(curl -s https://codecov.io/bash) -f coverage.info
- cd ..