[Python-checkins] Add test coverage reporting for C files (GH-7773)
Brett Cannon
webhook-mailer at python.org
Fri Jun 22 17:29:05 EDT 2018
https://github.com/python/cpython/commit/d7da836c748968ef615a1be5d2f8aee2e99ca78f
commit: d7da836c748968ef615a1be5d2f8aee2e99ca78f
branch: master
author: Ammar Askar <ammar_askar at hotmail.com>
committer: Brett Cannon <brettcannon at users.noreply.github.com>
date: 2018-06-22T14:29:02-07:00
summary:
Add test coverage reporting for C files (GH-7773)
files:
M .travis.yml
diff --git a/.travis.yml b/.travis.yml
index fc128751cb2a..beecff2e6abf 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)
More information about the Python-checkins
mailing list