-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
38 lines (33 loc) · 877 Bytes
/
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
[tox]
envlist = py34, py35, flake8
skipsdist = True
[testenv]
usedevelop = True
deps =
-r{toxinidir}/test-requirements.txt
commands = nosetests --tests tests/unit
[testenv:integration]
deps =
-r{toxinidir}/test-requirements.txt
whitelist_externals =
docker
commands_pre =
docker build . -t fake-ubersmith-integration
docker run -itd --rm -p 9131:9131 --name fake-ubersmith fake-ubersmith-integration
sleep 5
commands =
nosetests --tests tests/integration
commands_post =
docker rm -f fake-ubersmith
[testenv:flake8]
basepython = python3
commands = flake8
[flake8]
exclude = .eggs,.tox
show-source = True
max-line-length = 120
[testenv:bump-dependencies]
basepython = python3
deps = pip-tools==2.0.2
commands =
pip-compile --upgrade --no-index --no-emit-trusted-host --output-file test-requirements.txt requirements.txt test-requirements.in