Skip to content

Commit

Permalink
Itegrate with coveralls.
Browse files Browse the repository at this point in the history
Fixes #69
  • Loading branch information
Kentzo committed Aug 30, 2018
1 parent 793342e commit 968494c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ environment:

install:
- "%PYTHON%\\python.exe -m pip install --upgrade pip"
- "%PYTHON%\\python.exe -m pip install --upgrade wheel>=0.30.0 setuptools>=36.6.0"
- "%PYTHON%\\python.exe -m pip install --upgrade wheel>=0.30.0 setuptools>=36.6.0 coveralls>=1.4.0"

build: off

test_script:
- "%PYTHON%\\python.exe setup.py test"

after_test:
- "%PYTHON%\\python.exe -m coverage run setup.py test"
- "%PYTHON%\\python.exe %PYTHON%\\Scripts\\coveralls"
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,16 @@ matrix:

install:
- curl https://bootstrap.pypa.io/get-pip.py | python
- python -m pip install --upgrade wheel>=0.30.0 setuptools>=36.6.0
- python -m pip install --upgrade wheel>=0.30.0 setuptools>=36.6.0 coveralls>=1.4.0

script:
- python setup.py test
- "[[ $(python -c \"import platform; print(platform.python_implementation())\") == \"CPython\" ]] && PYTHONASYNCIODEBUG=1 python setup.py test || true"

after_success:
- python -m coverage run setup.py test
- coveralls

deploy:
provider: pypi
user: martius
Expand Down
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
.. image:: https://ci.appveyor.com/api/projects/status/github/Martiusweb/asynctest?branch=master&svg=true
:target: https://ci.appveyor.com/project/Martiusweb/asynctest/branch/master
:alt: AppVeyor
.. image:: https://coveralls.io/repos/github/Martiusweb/asynctest/badge.svg?branch=master
:target: https://coveralls.io/github/Martiusweb/asynctest?branch=master
:alt: Coverage
.. image:: https://img.shields.io/pypi/pyversions/asynctest.svg
:target: https://github.com/Martiusweb/asynctest
:alt: Supported Python versions
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ python_requires = >=3.4
zip_safe = True
test_suite = test.test_suite

[coverage:run]
branch = True
source = asynctest

[tool:pytest]
testpaths = test

0 comments on commit 968494c

Please sign in to comment.