-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
72 lines (61 loc) · 1.87 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[tox]
envlist=mypy,py3,integration_tests-not_docker,lint,docs
[testenv]
deps=
-rtest-requirements.txt
commands=
pytest -vv --cov=jenkins_job_linter --cov-fail-under=100 --cov-report term-missing
[testenv:integration_tests]
commands=
pytest -vv -n4 --cov=jenkins_job_linter --cov-report term-missing integration_tests/tests.py {posargs}
[testenv:integration_tests_with_jjb_trunk]
deps=
-rtest-requirements.txt
git+https://git.openstack.org/openstack-infra/jenkins-job-builder#egg=jenkins-job-builder
commands=
{[testenv:integration_tests]commands}
[testenv:integration_tests-docker]
commands=
{[testenv:integration_tests]commands} -m docker
[testenv:integration_tests_with_jjb_trunk-docker]
commands=
{[testenv:integration_tests]commands} -m docker
[testenv:integration_tests-not_docker]
commands=
{[testenv:integration_tests]commands} -m "not docker"
[testenv:integration_tests_with_jjb_trunk-not_docker]
commands=
{[testenv:integration_tests]commands} -m "not docker"
[testenv:lint]
deps=
flake8
isort
pydocstyle
-rtest-requirements.txt
commands=
flake8 jenkins_job_linter tests integration_tests
isort --diff --recursive --check jenkins_job_linter tests integration_tests
pydocstyle jenkins_job_linter
[testenv:mypy]
deps=
git+https://github.com/python/mypy.git#egg=mypy
commands=
mypy --ignore-missing-imports --strict jenkins_job_linter
[testenv:docs]
deps=
-rdoc-requirements.txt
commands=
python setup.py build_sphinx {posargs}
[testenv:codecov]
# Upload coverage report to codecov.io; only intended for Travis use
passenv = CI TRAVIS TRAVIS_*
deps=
-rtest-requirements.txt
codecov
commands=
pytest --cov=jenkins_job_linter
codecov --flags unit
coverage erase
rm coverage.xml
pytest --cov={envsitepackagesdir}/jenkins_job_linter integration_tests/tests.py
codecov --flags integration