summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorAmmar Askar <ammar_askar@hotmail.com>2018-06-22 21:29:02 (GMT)
committerBrett Cannon <brettcannon@users.noreply.github.com>2018-06-22 21:29:02 (GMT)
commitd7da836c748968ef615a1be5d2f8aee2e99ca78f (patch)
tree58c867f18ce2b5334a2d3dea6c41dc43ab3af588 /.travis.yml
parent8fbbdf0c3107c3052659e166f73990b466eacbb0 (diff)
downloadcpython-d7da836c748968ef615a1be5d2f8aee2e99ca78f.zip
cpython-d7da836c748968ef615a1be5d2f8aee2e99ca78f.tar.gz
cpython-d7da836c748968ef615a1be5d2f8aee2e99ca78f.tar.bz2
Add test coverage reporting for C files (GH-7773)
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index fc12875..beecff2 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -66,9 +66,13 @@ matrix:
language: c
compiler: gcc
env: OPTIONAL=true
+ addons:
+ apt:
+ packages:
+ - lcov
before_script:
- ./configure
- - make -s -j4
+ - make coverage -s -j4
# Need a venv that can parse covered code.
- ./python -m venv venv
- ./venv/bin/python -m pip install -U coverage
@@ -79,6 +83,7 @@ matrix:
after_script: # Probably should be after_success once test suite updated to run under coverage.py.
# Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
- source ./venv/bin/activate
+ - make coverage-lcov
- bash <(curl -s https://codecov.io/bash)