Merge pull request #100 from jonafato/tox-on-travis

Run Travis-CI tests inside of tox
This commit is contained in:
Jon Banafato 2017-10-24 14:20:31 -04:00 committed by GitHub
commit 1d48345cb0
2 changed files with 13 additions and 9 deletions

View File

@ -9,13 +9,17 @@ python:
- "2.7"
- "pypy"
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
# Use tox to run tests on Travis-CI to keep one unified method of running tests in any environment
install:
- "pip install -r requirements.txt"
- "pip install coverage"
- "pip install coveralls"
- pip install coverage coveralls tox-travis
# command to run tests, e.g. python setup.py test
script: coverage run --source=pipreqs setup.py test
after_success:
coveralls
# Command to run tests, e.g. python setup.py test
script: tox
# Use a build stage instead of after_success to get a single coveralls report
jobs:
include:
- stage: Coveralls
script:
- coverage run --source=pipreqs setup.py test
- coveralls

View File

@ -1,5 +1,5 @@
[tox]
envlist = py27, py34, py35, py36
envlist = py27, py34, py35, py36, pypy
[testenv]
setenv =