]> granicus.if.org Git - python/commitdiff
Add test coverage reporting for C files (GH-7773)
authorAmmar Askar <ammar_askar@hotmail.com>
Fri, 22 Jun 2018 21:29:02 +0000 (17:29 -0400)
committerBrett Cannon <brettcannon@users.noreply.github.com>
Fri, 22 Jun 2018 21:29:02 +0000 (14:29 -0700)
.travis.yml

index fc128751cb2a124951b0dce6e6e7010e4d0dbde3..beecff2e6abf4a016282019e0c553c5a87741ee1 100644 (file)
@@ -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)