forked from gluetool/gluetool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
32 lines (26 loc) · 994 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
[tox]
envlist = py27-{unit-tests,static-analysis}
[testenv]
sitepackages = False
deps = -rtest-requirements.txt
passenv = CI TRAVIS TRAVIS_* CODECOV_TOKEN
[testenv:py27-unit-tests]
commands = pytest -v -ra --cov=gluetool --cov-report=html:coverage-report {posargs}
codecov
[testenv:py27-static-analysis]
commands = pytest -v -ra --pylint --flake8 -k 'not test_' {posargs}
[testenv:type-check]
basepython = python3.6
skip_install = True
deps =
mypy==0.630
mypy-extensions==0.4.1
setenv =
MYPATH = {toxinidir}
commands = mypy --config-file {toxinidir}/mypy.ini --py2 --strict {toxinidir}/gluetool/ {posargs}
# [testenv:py27-doctest]
# whitelist_externals = ansible-playbook
# commands = /usr/bin/ansible-playbook generate-docs.yml -e generate_dir="{envtmpdir}/docs"
# [testenv:py27-static-analysis-coala]
# whitelist_externals = docker
# commands = docker run -ti --rm -v {toxinidir}:/gluetool:z --workdir=/gluetool coala/base coala -c /gluetool/.coafile --non-interactive