forked from pkgcore/pkgcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
37 lines (35 loc) · 843 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
[tox]
envlist = py27, py34, py35, py36
skipsdist = True
[testenv]
whitelist_externals = ln
changedir = {envsitepackagesdir}
setenv =
PYTHONPATH = {envsitepackagesdir}
deps =
pytest
pytest-xdist
pytest-cov
mock
-rrequirements.txt
commands =
pip install "{toxinidir}"
ln -sfn "{toxinidir}/.coveragerc" "{envsitepackagesdir}"
py.test {posargs:-n 4 --cov-report html --cov pkgcheck pkgcheck/test}
ln -sfn "{envsitepackagesdir}"/htmlcov "{envdir}"
[testenv:doc]
whitelist_externals = make
changedir = {toxinidir}
setenv =
PYTHONPATH = {envsitepackagesdir}
deps =
sphinx
-rrequirements.txt
commands =
make -C doc {posargs:man html}
# stub for travis-ci
[testenv:travis]
commands =
pip install "{toxinidir}"
ln -sfn "{toxinidir}/.coveragerc" "{envsitepackagesdir}"
py.test {posargs:-n 4 --cov-report= --cov pkgcheck pkgcheck/test}