• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 # Note: Run "python bootstrap.py" before running Tox, to generate metadata.
2 #
3 # To run Tox against all supported Python interpreters, you can set:
4 #
5 # export TOXENV='py27,py3{3,4,5,6},pypy,pypy3'
6 
7 [tox]
8 envlist=python
9 
10 [testenv]
11 deps=-rtests/requirements.txt
12 setenv=COVERAGE_FILE={toxworkdir}/.coverage.{envname}
13 # TODO: The passed environment variables came from copying other tox.ini files
14 # These should probably be individually annotated to explain what needs them.
15 passenv=APPDATA HOMEDRIVE HOMEPATH windir APPVEYOR APPVEYOR_* CI CODECOV_* TRAVIS TRAVIS_*
16 commands=pytest --cov-config={toxinidir}/tox.ini --cov-report= {posargs}
17 usedevelop=True
18 
19 
20 [testenv:coverage]
21 description=Combine coverage data and create report
22 deps=coverage
23 skip_install=True
24 changedir={toxworkdir}
25 setenv=COVERAGE_FILE=.coverage
26 commands=coverage erase
27          coverage combine
28          coverage {posargs:xml}
29 
30 [testenv:codecov]
31 description=[Only run on CI]: Upload coverage data to codecov
32 deps=codecov
33 skip_install=True
34 commands=codecov --file {toxworkdir}/coverage.xml
35 
36 [coverage:run]
37 source=
38 	pkg_resources
39 	setuptools
40 omit=
41 	*/_vendor/*
42