]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
travis, tox: only do coverage testing in py27
authorDaniel Axtens <dja@axtens.net>
Thu, 24 Oct 2019 03:17:04 +0000 (14:17 +1100)
committerDaniel Axtens <dja@axtens.net>
Tue, 29 Oct 2019 04:32:12 +0000 (15:32 +1100)
Currently Travis calls `tox -e coverage` unconditionally. However,
the environment has py27 basepython, so all the runs only generate
py27 coverage!

Rather than try to untangle that, just run the coverage when run
in a py27 travis environment. This makes things faster for no
loss of coverage. It means that codecov has nothing to submit for
the py3x environments, but that's no real loss: it would otherwise
submit lots of duplicate data.

We could try to improve coverage by running coverage for 27 and 3x,
but given that 27 is going away, don't stress at this point.

Signed-off-by: Daniel Axtens <dja@axtens.net>
.travis.yml
tox.ini

index f8c5462588233af35bd815bece858e71152ec0b0..71777d37fce3c1d7c53822ae6bb722a4fa52230f 100644 (file)
@@ -56,7 +56,6 @@ script:
       psql -c "SELECT VERSION(), CURRENT_USER, current_database()" -U $PW_TEST_DB_USER patchwork;
     fi
   - tox
-  - tox -e coverage
 
 after_success:
   - codecov
diff --git a/tox.ini b/tox.ini
index 4267f47241b6787cc6a39c8e82d80923eea7a69b..140c19246dd162d4200f50ade3542868e90e5bad 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -86,4 +86,4 @@ commands =
 
 [travis]
 python =
-    2.7: py27, pep8
+    2.7: py27, pep8, coverage