Compute coverage on Travis CI same as in tox (#88)

I want to know if my test suite is complete without the smoke test run.
This commit is contained in:
Marius Gedminas 2018-11-09 11:53:54 +02:00 committed by GitHub
parent ba391db4f8
commit 7ab134d04c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,6 @@
[run]
source = check_manifest
[report]
exclude_lines =
pragma: nocover

View File

@ -20,8 +20,9 @@ env:
install:
- pip install coverage coveralls mock flake8
script:
- SKIP_NO_TESTS=1 coverage run --source=check_manifest setup.py test -q
- coverage run --source=check_manifest --append check_manifest.py
- SKIP_NO_TESTS=1 coverage run setup.py test -q
- coverage report -m
- python check_manifest.py
- flake8 *.py
after_script:
- coveralls