-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy path.travis.yml
34 lines (28 loc) · 862 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
dist: focal
language: cpp
compiler:
- gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- lcov
- libgtest-dev
before_script:
- git submodule add https://github.com/google/googletest.git gtest
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DRUN_TESTS=ON -DENABLE_COVERAGE=ON ..
script:
- make
- make test
after_success:
- git submodule deinit -f -- gtest
- rm -rf .git/modules/gtest
- git rm -f gtest
- lcov --capture --directory . --output-file coverage_total.info
- lcov --remove coverage_total.info '/usr/*' --output-file coverage_total.info
- lcov --remove coverage_total.info 'gtest/*' --output-file coverage_total.info
- lcov --list coverage_total.info
- bash <(curl -s https://codecov.io/bash) -f coverage_total.info || echo "Codecov did not collect coverage reports"