From 7809da61e6b3e90188fbd4a084607c389a4e3845 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Mon, 18 Dec 2017 11:04:14 +0200 Subject: [PATCH] Properly report coverage - use same version of coverage.py as is inside the container b/c data format has changed between versions - use `coverage combine' with a .coveragerc mapping to adjust for differences in file paths between the container and Travis --- .coveragerc | 5 +++++ .travis.yml | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..102777e2 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,5 @@ +# http://nedbatchelder.com/code/coverage/config.html + +[paths] +source = . + /lorax/ diff --git a/.travis.yml b/.travis.yml index 1d479a63..b960eb59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -10,10 +10,11 @@ after_success: - | sudo docker create --name results-cont welder/lorax-composer - sudo docker cp results-cont:/lorax/.coverage .coverage + sudo docker cp results-cont:/lorax/.coverage .coverage.docker sudo docker rm results-cont - pip install coveralls + pip install coverage==3.6 coveralls + coverage combine coveralls notifications: