From a48305b1221dc136d93269026b07c5baff6d9144 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Fri, 22 Nov 2019 22:39:22 +0100 Subject: [PATCH] Update Travis config to export coverage information --- .travis.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 392de7e..f035d29 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,14 +12,30 @@ matrix: - python: "3.7" dist: xenial -# we don't need any python dependencies: -install: true +# we don't need any python dependencies, but a ruby one for coverage: +install: gem install coveralls-lcov # the test command: -script: python ./setup.py test +script: + - python ./setup.py test + - make clean + - CFLAGS="-coverage" python ./setup.py test # but we do need a system library: addons: apt: packages: - libacl1-dev + - lcov + +# coverage settings from here: + +env: + - COVERALLS_PARALLEL=true + +after_success: + - lcov --capture --no-external --directory . --output-file coverage.info + - coveralls-lcov coverage.info + +notifications: + webhooks: https://coveralls.io/webhook -- 2.39.2