]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
travis: Integrate with codecov
authorStephen Finucane <stephen@that.guru>
Sun, 23 Oct 2016 20:38:08 +0000 (21:38 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 1 Nov 2016 20:59:50 +0000 (20:59 +0000)
This mostly involves enabling coverage as a default tox target. We add
pep8 too, while we're at it.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Daniel Axtens <dja@axtens.net>
.travis.yml
README.md
tox.ini

index 80f5634d04bb02f1b9b4e77cccb978dfe6b15971..618cbe5a166221bc6992f37a6433c6bf3eea138e 100644 (file)
@@ -19,6 +19,11 @@ before_script:
 
 install:
   - pip install tox-travis
+  - pip install codecov
 
 script:
   - tox
+  - tox -e coverage
+
+after_success:
+  - codecov
index dc9e19886b05e830b20c7217b08cd06ab2a7d7c3..b53f2e24c64117a10f078357cfbdc012db8f8c6e 100644 (file)
--- a/README.md
+++ b/README.md
@@ -3,6 +3,7 @@
 [![Requirements Status][badge-req-img]][badge-req-ref]
 [![Build Status][badge-travis-img]][badge-travis-ref]
 [![Code Health][badge-landscape-img]][badge-landscape-ref]
+[![Codecov][badge-codecov-img]][badge-codecov-ref]
 [![Docs Status][badge-doc-img]][badge-doc-ref]
 [![Stories in Ready][badge-waffle-img]][badge-waffle-ref]
 
@@ -63,6 +64,8 @@ For further information, please refer to the [docs][docs].
 For bug reports, patch submissions or other questions, please use the
 [Patchwork mailing list][pw-ml].
 
+[badge-codecov-ref]: https://codecov.io/gh/getpatchwork/patchwork
+[badge-codecov-img]: https://codecov.io/gh/getpatchwork/patchwork/branch/master/graph/badge.svg
 [badge-doc-ref]: https://patchwork.readthedocs.io/en/latest/
 [badge-doc-img]: https://readthedocs.org/projects/patchwork/badge/?version=latest
 [badge-landscape-ref]: https://landscape.io/github/getpatchwork/patchwork/master
diff --git a/tox.ini b/tox.ini
index 0836cd52ae1d9e04e3b3ce2c8a920f73330f2a6f..e55e3bd97bdca98c04020f432d934e6b243ed6b5 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 2.0
-envlist = py{27,34}-django{16,17,18,19,110},py35-django{18,19,110}
+envlist = pep8,py{27,34}-django{16,17,18,19,110},py35-django{18,19,110}
 skipsdist = True
 
 [testenv]