• 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]
8envlist=python
9
10[testenv]
11deps=-rtests/requirements.txt
12setenv=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.
15passenv=APPDATA HOMEDRIVE HOMEPATH windir APPVEYOR APPVEYOR_* CI CODECOV_* TRAVIS TRAVIS_*
16commands=pytest --cov-config={toxinidir}/tox.ini --cov-report= {posargs}
17usedevelop=True
18
19
20[testenv:coverage]
21description=Combine coverage data and create report
22deps=coverage
23skip_install=True
24changedir={toxworkdir}
25setenv=COVERAGE_FILE=.coverage
26commands=coverage erase
27         coverage combine
28         coverage {posargs:xml}
29
30[testenv:codecov]
31description=[Only run on CI]: Upload coverage data to codecov
32deps=codecov
33skip_install=True
34commands=codecov --file {toxworkdir}/coverage.xml
35
36[coverage:run]
37source=
38	pkg_resources
39	setuptools
40omit=
41	*/_vendor/*
42