[PATCH 3/4] travis: Integrate with codecov

Daniel Axtens dja at axtens.net
Tue Nov 1 08:05:22 AEDT 2016


I'm a big fan of this.

Reviewed-by: Daniel Axtens <dja at axtens.net>

Regards,
Daniel

Stephen Finucane <stephen at that.guru> writes:

> 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 at that.guru>
> Cc: Daniel Axtens <dja at axtens.net>
> ---
>  .travis.yml | 5 +++++
>  README.md   | 3 +++
>  tox.ini     | 2 +-
>  3 files changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/.travis.yml b/.travis.yml
> index 80f5634..618cbe5 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -19,6 +19,11 @@ before_script:
>  
>  install:
>    - pip install tox-travis
> +  - pip install codecov
>  
>  script:
>    - tox
> +  - tox -e coverage
> +
> +after_success:
> +  - codecov
> diff --git a/README.md b/README.md
> index dc9e198..b53f2e2 100644
> --- 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 c700b54..0584128 100644
> --- 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]
> -- 
> 2.7.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 859 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/patchwork/attachments/20161101/616e7ef0/attachment.sig>


More information about the Patchwork mailing list