From cfc6a8b33ec1fbaffcfd0cc118a5365f2343aebc Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sat, 23 May 2020 17:37:09 +0200 Subject: [PATCH] travis: Add some coverage cleanup and management --- .travis/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.travis/build.sh b/.travis/build.sh index 80f5e0b..a41a437 100755 --- a/.travis/build.sh +++ b/.travis/build.sh @@ -30,6 +30,7 @@ pip3 install --user --quiet \ psycopg2-binary>=2.8.3 \ pytest-timeout==1.3.3 \ pytest-xdist==1.30.0 \ + pytest-cov \ coverage \ codecov \ mrkd==0.1.6 @@ -77,10 +78,14 @@ export PATH="$CWD/.travis/bin:$PATH" # internally). which python3 +rm /tmp/.coverage.* .coverage.tmp .coverage || true + pytest -vvv --timeout=550 --timeout_method=thread -p no:logging -n 2 # Print the coverage files ls -lha /tmp/.coverage.* # Now collect the results in a single file so coveralls finds them -coverage combine -a /tmp/.coverage.* +touch .coverage +mv .coverage .coverage.tmp +coverage combine -a /tmp/.coverage.* .coverage.tmp