forked from ebroecker/canmatrix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (38 loc) · 964 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[tox]
envlist = py{27,35,36,37,38}, pypy{,3}, mypy
[testenv]
deps=
py27,pypy: -r {toxinidir}/requirements.test.py2.txt
py3{5,6,7,8},pypy3: -r {toxinidir}/requirements.test.py3.txt
passenv=
TOXENV
CI
TRAVIS
TRAVIS_*
APPVEYOR
APPVEYOR_*
commands=
python -c 'import sys; print(sys.version)'
pytest -s --basetemp={envtmpdir} canmatrix --cov-config={toxinidir}/.coveragerc --cov=canmatrix --pyargs {posargs}
coverage report
[testenv:dist]
envdir={toxworkdir}/{envname}_env
commands=
python -c 'import sys; print(sys.version)'
python setup.py sdist --formats=gztar,zip --dist-dir={toxinidir}/dist
python setup.py bdist_wheel --universal --dist-dir={toxinidir}/dist
[testenv:codecov]
deps=
codecov==2.0.15
commands=
codecov
[testenv:old_tests]
commands=
./test.sh
[testenv:mypy]
description = type check
basepython = python3.6
deps=
mypy
commands=
python -m mypy src --config-file mypy.ini