forked from cloud-custodian/cloud-custodian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
50 lines (40 loc) · 1.32 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
[flake8]
exclude = .git,venv,python2.7,bin,test_*,tests,docs,__init__.py,.tox
; E401 is 'multiple imports on one line' -- no big deal
; E128 is under identation
; E203 is whitespace before ':'
; E221 is multiple spaces before operator
; E231 is missing whitespace after ,/:
; E251 is unexpected spaces around keywords
ignore = E401,E128,E203,E221,E231,E251
max-line-length = 100
[tox]
envlist = py27,py36,lint
[testenv]
deps = -rrequirements-dev.txt
setenv =
AWS_DEFAULT_REGION=us-east-1
AWS_ACCESS_KEY_ID=foo
AWS_SECRET_ACCESS_KEY=bar
C7N_VALIDATE=true
[testenv:py27]
commands =
py.test --tb=native -n auto tests tools {posargs}
[testenv:py27-cov]
commands =
py.test --tb=native --cov=c7n -n auto --durations 20 tests {posargs}
# Tools are optional. Run the tests but don't run coverage over them lest
# we lose our green badge. :]
py.test --tb=native -n auto --durations 10 tools {posargs}
[testenv:py36]
commands = - py.test --tb=line -n auto --junitxml=results.xml tests tools {posargs}
python3 ./tools/dev/ratchet.py results.xml ratchet.txt
[testenv:pypy]
commands =
py.test -n auto tests tools/c7n_logexporter tools/c7n_mailer {posargs}
[testenv:lint]
commands = flake8 c7n
[testenv:docs]
whitelist_externals = make
commands = make sphinx
[pytest] ; force pytest to use . as the rootdir