forked from dcos/dcos-launch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (46 loc) · 1.1 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
[tox]
envlist = py35-{syntax,unit-tests,build-binary}
[flake8]
deps = flake8-import-order==0.9.2
max-line-length = 120
exclude = .git,.tox,__pycache__,lib,bin,include
application-import-names = dcos_launch
import-order-style = smarkets
[pytest]
addopts = -rs -vv
testpaths =
test
[testenv]
deps =
six==1.12.0
teamcity-messages==1.21
-rrequirements.txt
[testenv:py35-syntax]
passenv = TEAMCITY_VERSION
deps = flake8==3.3.0
commands = flake8 --verbose
[testenv:py35-unit-tests]
passenv = TEAMCITY_VERSION
commands = py.test --tb=long {posargs}
[testenv:py35-build-binary]
passenv = TEAMCITY_VERSION
commands =
pyinstaller --distpath=./ dcos-launch.spec
./dcos-launch --help
[testenv:py35-dcos-launch]
# This is convenient entrypoint for using dcos-launch to cleanup tests
# without having to recreate a new virtual environment or download a binary
passenv =
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_REGION
AZURE_CLIENT_ID
AZURE_CLIENT_SECRET
AZURE_SUBSCRIPTION_ID
AZURE_TENANT_ID
AZURE_LOCATION
GCE_CREDENTIALS
GOOGLE_APPLICATION_CREDENTIALS
GCE_ZONE
commands =
dcos-launch {posargs}