forked from palantir/conjure-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
42 lines (37 loc) · 1.14 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
# 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,3},mypy{27,3},lint
[testenv]
commands =
pytest -v --capture=no --junitxml=./build/pytest-{envname}.xml --html=./build/pytest-{envname}.html --self-contained-html {posargs:test/}
deps =
mock==2.0.0
pytest==3.2.5
pytest-pylint==0.9.0
pytest-html==1.16.1
pyyaml==3.13
setenv =
PYTHONDONTWRITEBYTECODE = 1
ROOT_PROJECT_DIR = {toxinidir}
# run mypy as if the source code were in python 2.7
[testenv:mypy27]
basepython = python3
commands =
mypy --config-file mypy.ini --junit-xml ./build/mypy-{envname}.xml --py2 conjure_python_client
deps =
mypy==0.600
# run mypy as if the source code were in python 3
[testenv:mypy3]
basepython = python3
commands =
mypy --config-file mypy.ini --junit-xml ./build/mypy-{envname}.xml conjure_python_client
deps =
mypy==0.600
[testenv:lint]
commands =
pycodestyle conjure_python_client
deps =
pycodestyle==2.4.0