forked from cloud-custodian/cloud-custodian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (44 loc) · 1.31 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
[flake8]
exclude = .git,venv,python2.7,bin,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,E251
ignore = E128,E401
max-line-length = 100
[tox]
envlist = py27,py36,lint
[testenv]
deps =
-rrequirements-dev.txt
-rtools/c7n_mailer/requirements.txt
-rtools/c7n_azure/requirements.txt
-rtools/c7n_gcp/requirements.txt
setenv =
AWS_DEFAULT_REGION=us-east-1
AWS_ACCESS_KEY_ID=foo
AWS_SECRET_ACCESS_KEY=bar
AWS_SESSION_TOKEN=fake
C7N_VALIDATE=true
AZURE_ACCESS_TOKEN=fake_token
AZURE_SUBSCRIPTION_ID=ea42f556-5106-4743-99b0-c129bfa71a47
[testenv:py27]
commands =
py.test --tb=native -n auto tests tools {posargs}
[testenv:py27-cov]
commands =
py.test --tb=native --cov c7n -n 8 --durations 20 tests tools {posargs}
[testenv:py36]
commands = py.test --tb=native -n auto tests tools {posargs}
[testenv:pypy]
commands =
py.test -n auto tests tools/c7n_logexporter tools/c7n_mailer {posargs}
[testenv:lint]
commands = make lint
[testenv:docs]
whitelist_externals = make
commands = make sphinx
[pytest] ; force pytest to use . as the rootdir