-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
80 lines (74 loc) · 1.82 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
[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=
# TODO(cmaloney): Reduce the number of top level modules we have
application-import-names=dcos_installer,dcos_internal_utils,gen,history,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]
passenv =
TEAMCITY_VERSION
commands =
pip install -e flake8_dcos_lint
flake8 --verbose
[testenv:py35-unittests]
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_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
pytest
webtest
webtest-aiohttp
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]
passenv =
TEAMCITY_VERSION
SSH_AUTH_SOCK
deps =
pytest
changedir=pkgpanda/build/tests
commands=
py.test --basetemp={envtmpdir} {posargs} build_integration_test.py
[testenv:py35-bootstrap]
passenv =
TEAMCITY_VERSION
deps=
pytest
changedir=packages/bootstrap/extra
commands=
pip install .
py.test --basetemp={envtmpdir} {posargs}