-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from aodag/misc/tox
fix tox
- Loading branch information
Showing
2 changed files
with
26 additions
and
14 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 |
---|---|---|
@@ -1,13 +1,21 @@ | ||
sudo: false | ||
language: python | ||
python: | ||
- pypy | ||
- 3.4 | ||
- 3.5 | ||
- 3.6 | ||
install: | ||
- pip install -e .[testing] -c constraints.txt | ||
- pip install tox-travis | ||
script: | ||
- flake8 webdispatch | ||
- pylint webdispatch | ||
- py.test webdispatch --cov=webdispatch --cov-report=term-missing | ||
- tox | ||
jobs: | ||
include: | ||
- python: 3.6 | ||
env: TOXENV=coverage | ||
- python: 3.6 | ||
env: TOXENV=flake8 | ||
- python: 3.6 | ||
env: TOXENV=pylint | ||
after_success: | ||
- if test "$TOXENV" = coverage ; then coveralls ; fi | ||
- if test "$TOXENV" = coverage ; then pip install coveralls; coveralls ; fi |
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,21 +1,25 @@ | ||
[tox] | ||
envlist = py34,py35,py36pypy,coverage,flake8,pylint | ||
envlist = py34,py35,py36,pypy,coverage,flake8,pylint | ||
|
||
[testenv] | ||
deps = -rdev-requires.txt | ||
commands = py.test webdispatch | ||
commands = | ||
pip install -e .[testing] -c constraints.txt | ||
py.test webdispatch | ||
|
||
[testenv:coverage] | ||
basepython = python3.6 | ||
deps = -rdev-requires.txt | ||
commands = py.test webdispatch --cov=webdispatch --cov-report=term-missing | ||
commands = | ||
pip install -e .[testing] -c constraints.txt | ||
py.test webdispatch --cov=webdispatch --cov-report=term-missing | ||
|
||
[testenv:flake8] | ||
basepython = python3.6 | ||
deps = -rdev-requires.txt | ||
commands = flake8 webdispatch | ||
commands = | ||
pip install -e .[testing] -c constraints.txt | ||
flake8 webdispatch | ||
|
||
[testenv:pylint] | ||
basepython = python3.6 | ||
deps = -rdev-requires.txt | ||
commands = pylint webdispatch | ||
commands = | ||
pip install -e .[testing] -c constraints.txt | ||
pylint webdispatch |