Skip to content

Commit d7da836

Browse files
ammaraskarbrettcannon
authored andcommitted
Add test coverage reporting for C files (GH-7773)
1 parent 8fbbdf0 commit d7da836

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,13 @@ matrix:
6666
language: c
6767
compiler: gcc
6868
env: OPTIONAL=true
69+
addons:
70+
apt:
71+
packages:
72+
- lcov
6973
before_script:
7074
- ./configure
71-
- make -s -j4
75+
- make coverage -s -j4
7276
# Need a venv that can parse covered code.
7377
- ./python -m venv venv
7478
- ./venv/bin/python -m pip install -U coverage
@@ -79,6 +83,7 @@ matrix:
7983
after_script: # Probably should be after_success once test suite updated to run under coverage.py.
8084
# Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
8185
- source ./venv/bin/activate
86+
- make coverage-lcov
8287
- bash <(curl -s https://codecov.io/bash)
8388

8489

0 commit comments

Comments
 (0)