This repository has been archived by the owner on Aug 11, 2023. It is now read-only.
forked from manheim/manheim-c7n-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
74 lines (68 loc) · 1.89 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
[tox]
envlist = py36,py37,docs,docker
[testenv]
deps =
-rrequirements.txt
cov-core
coverage
execnet
pep8
py
pytest>=2.8.3
pytest-cache
pytest-cov
pytest-pep8
pytest-flakes
pytest-html
mock==3.0.5
freezegun
pytest-blockage
passenv=TRAVIS*
setenv =
TOXINIDIR={toxinidir}
TOXDISTDIR={distdir}
sitepackages = False
whitelist_externals = env test
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 --pep8 --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 = TRAVIS* CONTINUOUS_INTEGRATION AWS* READTHEDOCS*
setenv =
TOXINIDIR={toxinidir}
TOXDISTDIR={distdir}
CI=true
deps =
-rrequirements.txt
-rdocs/requirements.txt
basepython = python3.7
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}
commands =
python --version
virtualenv --version
pip --version
pip freeze
{toxinidir}/build_or_deploy.sh dockerbuildtest