forked from tracboat/tracboat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
52 lines (47 loc) · 1.46 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[tox]
envlist = py{27,34,35,36}-test,lint
skip_missing_interpreters = True
[testenv]
# testenv: default tox environment. Run the whole test suite
# along with source doctests.
changedir = {envdir}
deps = -r{toxinidir}/requirements/develop.txt
commands =
pytest --basetemp {envtmpdir} {posargs} {toxinidir}/tests
# pytest --basetemp {envtmpdir} --doctest-modules {posargs} {toxinidir}/src/tracboat
[testenv:coverage]
# coverage: run coverage tests and produce coverage reports.
usedevelop = True
commands =
coverage erase
pytest --basetemp {envtmpdir} --cov tracboat --cov-report term --cov-config {toxinidir}/.coveragerc {posargs} {toxinidir}/tests
coverage html
[testenv:lint]
# lint: run linting checks on the code base.
skip_install=True
commands =
# Temporarily disable:
# - TODOs
# - Missing docstrings
pylint --rcfile {toxinidir}/.pylint --disable=fixme,missing-docstring {toxinidir}/src/tracboat
flake8 --config {toxinidir}/.flake8 {toxinidir}/src/tracboat
[testenv:codecov]
# Codecov CI
# Editable install will fix this issue:
# https://github.com/pytest-dev/pytest-cov/issues/98
usedevelop = True
passenv = TOXENV CI TRAVIS TRAVIS_*
deps =
codecov>=1.4.0
{[testenv]deps}
commands =
{[testenv:coverage]commands}
codecov -e TOXENV
[travis]
# Section used by tox-travis, run only the py-version
# that matches the current Travis test run
python =
2.7: py27, lint, codecov
3.4: py34
3.5: py35
3.6: py36