-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathtox.ini
61 lines (56 loc) · 1.53 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
[tox]
envlist = coverage-clean,{py36,py38,pypy3}-{twlatest,twtrunk,twlowest}-{aclatest,acmaster}-alldeps,flake8,docs,coverage-report
[testenv]
setenv =
PYTHONWARNINGS = default::DeprecationWarning
HYPOTHESIS_PROFILE = coverage
whitelist_externals =
mkdir
deps =
.[test]
alldeps: .[libcloud]
acmaster: https://github.com/certbot/certbot/archive/master.zip#egg=acme&subdirectory=acme
twlatest: Twisted[tls]
twtrunk: https://github.com/twisted/twisted/archive/trunk.zip#egg=Twisted[tls]
twlowest: Twisted[tls]==16.2.0
coverage
commands =
pip list
mkdir -p {envtmpdir}
coverage run --parallel-mode \
{envdir}/bin/trial --temp-directory={envtmpdir}/_trial_temp {posargs:txacme integration}
[testenv:flake8]
basepython = python3.8
deps =
flake8
pep8-naming
commands = flake8 src setup.py docs/client_example.py docs/service_example.py
[testenv:coverage-clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:coverage-report]
deps =
coverage
diff_cover
skip_install = true
commands =
coverage combine
coverage report
coverage xml -o {envtmpdir}/coverage.xml
diff-cover {envtmpdir}/coverage.xml
[testenv:docs]
whitelist_externals =
rm
test
cat
changedir = docs
deps =
-rrequirements-doc.txt
commands =
rm -rf {toxinidir}/docs/api/
rm -f {envtmpdir}/errors
sphinx-build -W -w {envtmpdir}/errors --keep-going \
-n -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
cat {envtmpdir}/errors
test ! -s {envtmpdir}/errors