Skip to content

Commit

Permalink
Merge pull request #28 from aodag/misc/tox
Browse files Browse the repository at this point in the history
fix tox
  • Loading branch information
aodag committed Jan 28, 2018
2 parents 0b01263 + c77cfdf commit 75bb9d4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
18 changes: 13 additions & 5 deletions .travis.yml
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
22 changes: 13 additions & 9 deletions tox.ini
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

0 comments on commit 75bb9d4

Please sign in to comment.