]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | [tox] |
2 | envlist = pep8,py27,py3 | |
3 | skip_missing_interpreters = True | |
4 | ||
5 | [testenv] | |
6 | basepython = | |
7 | py27: python2.7 | |
8 | py3: python3 | |
9 | setenv = VIRTUAL_ENV={envdir} | |
10 | usedevelop = true | |
11 | deps = | |
12 | {env:NO_INDEX:} | |
7c673cae FG |
13 | --find-links=file://{toxinidir}/wheelhouse |
14 | -r{toxinidir}/requirements.txt | |
15 | -r{toxinidir}/test-requirements.txt | |
16 | ||
17 | commands = coverage run --source=ceph_detect_init {envbindir}/py.test -v tests | |
18 | coverage report --show-missing --fail-under=100 | |
19 | ||
20 | [testenv:pep8] | |
21 | basepython = python2 | |
22 | commands = flake8 ceph_detect_init tests | |
23 | ||
24 | [testenv:integration] | |
25 | basepython = python2 | |
26 | setenv = VIRTUAL_ENV={envdir} | |
27 | deps = -r{toxinidir}/requirements.txt | |
28 | -r{toxinidir}/test-requirements.txt | |
29 | ||
30 | commands = {envbindir}/py.test -v integration/test_main.py |