forked from ebroecker/canmatrix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
47 lines (42 loc) · 914 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
44
45
46
47
[tox]
envlist = py{27,35,36,37,38,39,310}, pypy{,3}, mypy
[testenv]
extras =
arxml
test
xls
deps=
coverage
pytest-cov
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