forked from Teemu/pytest-sugar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
26 lines (24 loc) · 899 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py{27,34,35,36,py}-pytest30-supported-xdist,
py{27,35}-pytest30-unsupported-xdist,
py{27,34,py}-pytest31-supported-xdist
[testenv]
passenv = CI TRAVIS_BUILD_ID TRAVIS TRAVIS_BRANCH TRAVIS_JOB_NUMBER TRAVIS_PULL_REQUEST TRAVIS_JOB_ID TRAVIS_REPO_SLUG TRAVIS_COMMIT
deps =
codecov>=1.4.0
pytest-cov
pytest30: pytest>=3.0,<3.1
pytest31: pytest>=3.1,<3.2
termcolor>=1.1.0
supported-xdist: pytest-xdist>=1.14
unsupported-xdist: pytest-xdist<1.14
pytest-rerunfailures
flake8
commands =
py.test --cov=./ {posargs:test_sugar.py}
flake8 --exclude faketests,.tox
codecov -e TOXENV