mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Add test coverage reporting for C files (GH-7773)
This commit is contained in:
parent
8fbbdf0c31
commit
d7da836c74
1 changed files with 6 additions and 1 deletions
|
@ -66,9 +66,13 @@ matrix:
|
||||||
language: c
|
language: c
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
env: OPTIONAL=true
|
env: OPTIONAL=true
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- lcov
|
||||||
before_script:
|
before_script:
|
||||||
- ./configure
|
- ./configure
|
||||||
- make -s -j4
|
- make coverage -s -j4
|
||||||
# Need a venv that can parse covered code.
|
# Need a venv that can parse covered code.
|
||||||
- ./python -m venv venv
|
- ./python -m venv venv
|
||||||
- ./venv/bin/python -m pip install -U coverage
|
- ./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.
|
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.
|
# Make the `coverage` command available to Codecov w/ a version of Python that can parse all source files.
|
||||||
- source ./venv/bin/activate
|
- source ./venv/bin/activate
|
||||||
|
- make coverage-lcov
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
- bash <(curl -s https://codecov.io/bash)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue