-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
coverall.yml
30 lines (25 loc) 路 997 Bytes
/
coverall.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
notifications:
email: false
sudo: false
dist: trusty
install:
- cd ${TRAVIS_BUILD_DIR}
# install latest LCOV (1.9 was failing for me) [1]
- wget http://ftp.de.debian.org/debian/pool/main/l/lcov/lcov_1.11.orig.tar.gz
- tar xf lcov_1.11.orig.tar.gz
- sudo make -C lcov-1.11/ install
# install lcov to coveralls conversion + upload tool
- gem install coveralls-lcov
before_script: (optional: for paranoiacs only)
- cd ${TRAVIS_BUILD_DIR}
- lcov --directory . --zerocounters
script:
- cd ${TRAVIS_BUILD_DIR}
- <your command that compiles> # will generate *.gcno files
- <your command that runs> # will generate *.gcda files
after_success:
- cd ${TRAVIS_BUILD_DIR}
- lcov --directory . --capture --output-file coverage.info # capture coverage info
- lcov --remove coverage.info 'tests/*' '/usr/*' --output-file coverage.info # filter out system and test code
- lcov --list coverage.info # debug before upload
- coveralls-lcov --repo-token ${COVERALLS_TOKEN} coverage.info # uploads to coveralls