forked from dcos/dcos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
118 lines (107 loc) · 2.87 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
[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,launch,pkgpanda,release,test_util
import-order-style=smarkets
[pytest]
addopts = -rs -vv
testpaths =
dcos_installer
gen
pkgpanda
release
test_util
[testenv:py35-syntax]
platform=linux|darwin
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 =
attrs==19.1.0
dnspython
pytest==3.9.3
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} --junitxml=junit-{envname}.xml {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 =
attrs==19.1.0
pytest==3.9.3
schema
changedir=pkgpanda/build/tests
commands=
pytest --basetemp={envtmpdir} --junitxml=junit-{envname}.xml {posargs} build_integration_test.py
[testenv:py35-bootstrap]
platform=linux|darwin
passenv =
TEAMCITY_VERSION
deps=
attrs==19.1.0
pytest==3.9.3
changedir=packages/bootstrap/extra
commands=
pip install .
pytest --basetemp={envtmpdir} --junitxml=junit-{envname}.xml {posargs}
[testenv:mypy]
deps=
mypy==0.782
commands=
mypy ./test-e2e
mypy ./packages/cockroach/extra
mypy ./packages/exhibitor/extra/dcos_zk_backup.py
[testenv:collect-integration-tests]
platform=linux|darwin
basepython=python3.5
deps= -rpackages/dcos-integration-test/requirements.txt
commands=
py.test --xfailflake-report --collect-only packages/dcos-integration-test/extra/
[testenv:integration-test-mypy]
deps=
mypy
commands =
mypy packages/dcos-integration-test/extra/