-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (37 loc) · 1.03 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
dist: bionic
sudo: required
launguage: cpp
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- cmake
- cmake-data
before_install:
- pip install --user cpp-coveralls
install:
- sudo apt update -qq
- gem install coveralls-lcov
- sudo apt install -qq libboost-all-dev
- sudo apt-get install -y -qq lcov
- sudo apt update -qq
script:
- PARENTDIR=$(pwd)
- mkdir build
- cd build
- cmake -DCOVERAGE=ON -DCMAKE_BUILD_TYPE=Debug ../
- make
- make code_coverage
- test/pathPlanningTest
after_sucess:
- make gtest
- lcov --directory $PARENTDIR/build/test --capture --output-file coverage.info # capture coverage info
- lcov --remove coverage.info 'tests/*' 'lib/*' 'external/*' 'cmake/*' '/usr/*' '$PARENTDIR/lib/*' --output-file coverage.info # filter out system and test code
- lcov --list coverage.info # debug before upload
- coveralls-lcov coverage.info #--repo-token _____ coverage.info # uploads to coveralls
notifications:
email: false