This repository has been archived by the owner on Apr 22, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add travis-ci support (and clean up tox)
- Loading branch information
Showing
4 changed files
with
52 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[run] | ||
branch = True | ||
source = | ||
. | ||
omit = | ||
.tox/* | ||
/usr/* | ||
*/tmp* | ||
setup.py | ||
# Don't complain if non-runnable code isn't run | ||
*/__main__.py | ||
|
||
[report] | ||
exclude_lines = | ||
# Have to re-enable the standard pragma | ||
\#\s*pragma: no cover | ||
|
||
# Don't complain if tests don't hit defensive assertion code: | ||
^\s*raise AssertionError\b | ||
^\s*raise NotImplementedError\b | ||
^\s*return NotImplemented\b | ||
^\s*raise$ | ||
|
||
# Don't complain if non-runnable code isn't run: | ||
^if __name__ == ['"]__main__['"]:$ | ||
[html] | ||
directory = coverage-html | ||
# vim:ft=dosini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
language: python | ||
python: 3.5 | ||
env: # These should match the tox env list | ||
- TOXENV=py27 | ||
- TOXENV=py34 | ||
- TOXENV=py35 | ||
- TOXENV=pypy | ||
install: pip install coveralls tox | ||
script: tox | ||
after_success: coveralls | ||
cache: | ||
directories: | ||
- $HOME/.cache/pip | ||
- $HOME/.pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
-r requirements.txt | ||
coverage==4.2 | ||
flake8==2.5.0 | ||
pytest==2.9.2 | ||
mock==2.0.0 | ||
pre-commit==0.7.6 | ||
pytest-cov==2.2.0 | ||
sphinx==1.4.1 | ||
sphinxcontrib-programoutput==0.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters