-
Notifications
You must be signed in to change notification settings - Fork 25
/
tox.ini
75 lines (69 loc) · 1.92 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
73
74
75
[tox]
envlist = python3.7,python3.8,py39,docs,docker
[testenv]
deps =
-rrequirements.txt
cov-core
coverage
execnet
pycodestyle
py
pytest>=2.8.3
pytest-cache
pytest-cov
pytest-pycodestyle
pytest-flakes
pytest-html
freezegun
pytest-blockage
setenv =
TOXINIDIR={toxinidir}
TOXDISTDIR={distdir}
sitepackages = False
allowlist_externals =
env test
virtualenv
commands_pre =
# install c7n-mailer, which needs to be from source...
#{toxinidir}/tox_install_mailer.sh {toxinidir}
commands =
python --version
virtualenv --version
pip --version
pip freeze
py.test -rxs -vv --durations=10 --pycodestyle --flakes --blockage --cov-report term-missing --cov-report xml --cov-report html --cov-config {toxinidir}/.coveragerc --cov=manheim_c7n_tools --junitxml=testresults.xml --html=testresults.html {posargs} manheim_c7n_tools
[testenv:docs]
# this really just makes sure README.rst will parse on pypi
passenv = CONTINUOUS_INTEGRATION AWS* READTHEDOCS*
setenv =
TOXINIDIR={toxinidir}
TOXDISTDIR={distdir}
CI=true
deps =
-rrequirements.txt
-rdocs/requirements.txt
basepython = python3.9
commands_pre =
# install c7n-mailer, which needs to be from source...
#{toxinidir}/tox_install_mailer.sh {envdir}
commands =
python --version
virtualenv --version
pip --version
pip freeze
# link check (do this before apidoc, so we don't check c7n upstream docs links)
sphinx-build -a -b linkcheck {toxinidir}/docs/source {toxinidir}/docs/build/html
sphinx-apidoc manheim_c7n_tools manheim_c7n_tools/tests -o {toxinidir}/docs/source -e -f -M
# build
sphinx-build -a -b html {toxinidir}/docs/source {toxinidir}/docs/build/html
[testenv:docker]
setenv =
TOXINIDIR={toxinidir}
TOXDISTDIR={distdir}
basepython = python3.9
commands =
python --version
virtualenv --version
pip --version
pip freeze
{toxinidir}/build_or_deploy.sh dockerbuildtest