-
Notifications
You must be signed in to change notification settings - Fork 7
/
tox.ini
175 lines (161 loc) · 3.86 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
[flake8]
max-line-length=120
exclude=
# Package source build directories which contain arbitrary package code
packages/*/src,
# Package result build directories which contain arbitrary package code
packages/*/result,
# The local package cache
packages/cache,
# Tool folders
.git,.tox
ignore=E123
# TODO(cmaloney): Reduce the number of top level modules we have
application-import-names=dcos_installer,dcos_internal_utils,gen,history,launch,pkgpanda,release,ssh,test_util
import-order-style=smarkets
[pytest]
addopts = -rs -vv
testpaths =
dcos_installer
gen
packages/dcos-history/extra/
pkgpanda
release
ssh
test_util
[testenv:py35-syntax]
platform=linux|darwin
passenv =
TEAMCITY_VERSION
commands =
pip install -e flake8_dcos_lint
flake8 --verbose
[testenv:py36-syntax-win32]
platform=win32
passenv =
TEAMCITY_VERSION
commands =
pip install -e flake8_dcos_lint
flake8 --verbose
[testenv:py35-unittests]
platform=linux|darwin
# See the following link for AWS_* environment variables:
# http://boto3.readthedocs.io/en/latest/guide/configuration.html#configuring-credentials
passenv =
TEAMCITY_VERSION
SSH_AUTH_SOCK
AZURE_PROD_STORAGE_ACCOUNT
AZURE_PROD_STORAGE_ACCESS_KEY
AZURE_DEV_STORAGE_ACCOUNT
AZURE_DEV_STORAGE_ACCESS_KEY
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
AWS_PROFILE
AWS_CONFIG_FILE
AWS_DEFAULT_REGION
deps =
dnspython
pytest==3.3.2
pytest-catchlog==1.2.2
PyYAML
webtest
webtest-aiohttp==1.1.0
schema
cryptography==2.5
# Hack to stop pytest from collecting test-e2e tests.
# Simpler ways of achieving this would not work.
# https://stackoverflow.com/a/37493203
# TODO(tweidner): Set pytest collect directories explicitly.
commands=
pytest -p no:test_e2e_module --basetemp={envtmpdir} {posargs}
[testenv:py36-unittests-win32]
platform=win32
testpaths =
dcos_installer
dcos/gen
dcos/pkgpanda
dcos/release
dcos/test_util
packages/dcos-history/extra/
passenv =
TEAMCITY_VERSION
AZURE_PROD_STORAGE_ACCOUNT
AZURE_PROD_STORAGE_ACCESS_KEY
AZURE_DEV_STORAGE_ACCOUNT
AZURE_DEV_STORAGE_ACCESS_KEY
AWS_TESTING_ACCESS_KEY_ID
AWS_TESTING_SECRET_ACCESS_KEY
AWS_PROD_ACCESS_KEY_ID
AWS_PROD_SECRET_ACCESS_KEY
AWS_DEV_ACCESS_KEY_ID
AWS_DEV_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION
deps =
dnspython
teamcity-messages
pytest==3.3.2
pytest-catchlog==1.2.2
PyYAML
webtest
webtest-aiohttp==1.1.0
schema
cryptography==2.5
commands=
py.test --basetemp={envtmpdir} {posargs}
# pkgpanda build tests are kept separate from the rest because they take a while
# (lots of calls to docker). They also currently assume that they're run with a
# specific working directory (something that should be fixed).
[testenv:py35-pkgpanda-build]
platform=linux|darwin
passenv =
TEAMCITY_VERSION
SSH_AUTH_SOCK
deps =
pytest==3.3.2
schema
changedir=pkgpanda/build/tests
commands=
pytest --basetemp={envtmpdir} {posargs} build_integration_test.py
[testenv:py36-pkgpanda-build-win32]
platform=win32
passenv =
TEAMCITY_VERSION
SSH_AUTH_SOCK
deps =
pytest==3.3.2
schema
changedir=pkgpanda/build/tests
commands=
py.test --basetemp={envtmpdir} {posargs} build_integration_test.py
[testenv:py35-bootstrap]
platform=linux|darwin
passenv =
TEAMCITY_VERSION
deps=
pytest==3.3.2
changedir=packages/bootstrap/extra
commands=
pip install .
pytest --basetemp={envtmpdir} {posargs}
[testenv:py36-bootstrap-win32]
platform=win32
passenv =
TEAMCITY_VERSION
deps=
pytest==3.3.2
changedir=packages/bootstrap/extra
commands=
pip install .
pytest --basetemp={envtmpdir} {posargs}
[testenv:mypy]
deps=
mypy-mypyc==0.660
commands=
mypy ./test-e2e
[testenv:collect-integration-tests]
platform=linux|darwin
basepython=python3.5
deps= -rpackages/dcos-integration-test/extra/requirements.txt
commands=
py.test --xfailflake-report --collect-only packages/dcos-integration-test/extra/