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
This commit is contained in:
parent
c90ea64e59
commit
7809da61e6
5
.coveragerc
Normal file
5
.coveragerc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# http://nedbatchelder.com/code/coverage/config.html
|
||||||
|
|
||||||
|
[paths]
|
||||||
|
source = .
|
||||||
|
/lorax/
|
@ -10,10 +10,11 @@ after_success:
|
|||||||
- |
|
- |
|
||||||
|
|
||||||
sudo docker create --name results-cont welder/lorax-composer
|
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
|
sudo docker rm results-cont
|
||||||
|
|
||||||
pip install coveralls
|
pip install coverage==3.6 coveralls
|
||||||
|
coverage combine
|
||||||
coveralls
|
coveralls
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
Loading…
Reference in New Issue
Block a user