forked from twisted/ldaptor
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
69 lines (59 loc) · 2 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
; tox configuration file for running tests on local dev env and Travis CI.
;
; The local dev environment will be executed against latest released Twisted.
; The coverage is reported only and local dev and not on Travis-CI as there
; we have separate reported (ex codecov.io)
[tox]
toxworkdir=build/
;
; Tags explanation:
; * test - run trial tests
; * dev - run things in local dev mode
envlist =
{py27,py34,py35,py36,py37,pypy,pypy3}-test-{twlatest,twtrunk,dev},
{py27,py35,py35,py36,py37,pypy,pypy3}-ported,
{py27,py37}-linters,
documentation,
[testenv]
deps =
coverage
pyparsing
passlib
six
{twlatest,ported}: Twisted[tls]
twtrunk: https://github.com/twisted/twisted/archive/trunk.tar.gz#egg=Twisted[tls]
tw162: Twisted[tls]==16.2
tw160: Twisted[tls]==16.0
tw154: Twisted[tls]==15.4
tw150: Twisted[tls]==15.0
tw140: Twisted[tls]==14.0
; Dependecies for local dev environment.
dev: Twisted[tls]
dev: diff_cover
; Linters are installed both on local dev and the dedicated env.
{dev,linters}: pyflakes
{dev,linters}: check-manifest
; All environment variables are passed.
passenv = *
; Each command should have an associated tag as we use the same config for
; all the environments.
; This is done in order to reuse
commands =
{envpython} --version
{test,ported}: trial --version
test: coverage run --rcfile={toxinidir}/.coveragerc -m twisted.trial {posargs:ldaptor}
ported: trial ldaptor
; Only run on local dev env.
dev: coverage report --show-missing
dev: coverage xml -o {toxinidir}/build/coverage.xml
dev: coverage html -d build/coverage-html
dev: diff-cover --fail-under 100 --html-report {toxinidir}/build/coverage-diff.html {toxinidir}/build/coverage.xml
{dev,linters}: pyflakes ldaptor
{dev,linters}: check-manifest
[testenv:documentation]
deps = sphinx
basepython=python2.7
commands =
mkdir -p docs/build
sphinx-build -b html -Ean -j 2 -w build/sphinx-errors \
docs/source docs/build