-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathtox.ini
39 lines (35 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
[tox]
usedevelop=True
envlist = py27, py36
[flake8]
max-line-length = 120
[testenv]
deps =
-rtest-requirements.txt
commands =
flake8 bin chronos itests tests setup.py
py.test -v {posargs:tests}
[testenv:itests]
passenv = DOCKER_TLS_VERIFY DOCKER_HOST DOCKER_CERT_PATH
basepython = python2.7
whitelist_externals=/bin/bash
skipsdist=True
changedir=itests/
deps =
-rtest-requirements.txt
commands =
/bin/bash -c "docker-compose up -d chronos-{env:CHRONOSVERSION:3.0.2}"
behave --tags all,{env:CHRONOSVERSION:3.0.2} --no-capture --no-capture-stderr -Dchronos_version={env:CHRONOSVERSION:3.0.2} {posargs}
/bin/bash -c "docker-compose down"
[testenv:itests-py3]
passenv = DOCKER_TLS_VERIFY DOCKER_HOST DOCKER_CERT_PATH
basepython = python3
whitelist_externals=/bin/bash
skipsdist=True
changedir=itests/
deps =
-rtest-requirements.txt
commands =
/bin/bash -c "docker-compose up -d chronos-{env:CHRONOSVERSION:3.0.2}"
behave --tags all,{env:CHRONOSVERSION:3.0.2} --no-capture --no-capture-stderr -Dchronos_version={env:CHRONOSVERSION:3.0.2} {posargs}
/bin/bash -c "docker-compose down"