File: tox.ini

package info (click to toggle)
python-canmatrix 0.9.3~github-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 10,896 kB
  • sloc: xml: 30,201; python: 12,472; makefile: 18; sh: 9
file content (43 lines) | stat: -rw-r--r-- 964 bytes parent folder | download
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