forked from UshF/pumphouse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
44 lines (36 loc) · 1.01 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
[tox]
minversion = 1.6
envlist = pep8,py27
skipsdist = False
[testenv]
install_command = pip install --allow-external mysql-connector-python -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
python setup.py testr --slowest --testr-args='{posargs}'
[tox:jenkins]
sitepackages = True
[testenv:pep8]
sitepackages = False
commands =
flake8 {posargs}
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
coverage erase
python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$'
coverage combine
coverage html --include='pumphouse/*' --omit='pumphouse/_vendor/*' -d htmlcov -i
[testenv:venv]
commands = {posargs}
[testenv:faketest]
commands =
pumphouse doc/samples/config.yaml --fake migrate --setup
[testenv:apitest]
commands =
pumphouse-api doc/samples/api-config.yaml
[flake8]
ignore = F841
exclude = .venv,.git,.tox,dist,lib/python*,*egg,build,pumphouse-ui,pumphouse/_vendor/fuelclient