diff options
author | 2017-09-23 04:32:23 -0400 | |
---|---|---|
committer | 2017-09-23 04:39:07 -0400 | |
commit | 8437c57d0acb82be771e4a3ebcecf279d460c6c6 (patch) | |
tree | cbc5e969f789114e7a1fe9bd9845ec3062bf99ec /tox.ini | |
parent | update requirements layout style (diff) | |
download | pkgcore-8437c57d0acb82be771e4a3ebcecf279d460c6c6.tar.gz pkgcore-8437c57d0acb82be771e4a3ebcecf279d460c6c6.tar.bz2 pkgcore-8437c57d0acb82be771e4a3ebcecf279d460c6c6.zip |
move pkgcore module to src directory
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 46 |
1 files changed, 18 insertions, 28 deletions
@@ -1,39 +1,29 @@ [tox] -envlist = py27, py34, py35, py36 -skipsdist = True +envlist = py27, py34, py35, py36, coverage-report [testenv] -whitelist_externals = ln -changedir = {envsitepackagesdir} -setenv = - PYTHONPATH = {envsitepackagesdir} deps = - pytest - pytest-xdist - pytest-cov>=2.5.1 - mock - -rrequirements/release.txt + -rrequirements/build.txt + -rrequirements/install.txt + -rrequirements/tox.txt commands = - pip install "{toxinidir}" - pplugincache -q - py.test {posargs:-n 4 --cov-report html --cov pkgcore --cov-config "{toxinidir}/.coveragerc" pkgcore/test} - ln -sfn "{envsitepackagesdir}"/htmlcov "{envdir}" + coverage run --parallel -m pytest {posargs:-v} "{envsitepackagesdir}"/pkgcore -[testenv:doc] -whitelist_externals = make -changedir = {toxinidir} -setenv = - PYTHONPATH = {envsitepackagesdir} +# generate coverage report +[testenv:coverage-report] +deps = coverage +skip_install = true +commands = + coverage combine + coverage report + +# build docs +[testenv:docs] deps = - sphinx - pyparsing - -rrequirements/release.txt + -rrequirements/docs.txt commands = - make -C doc {posargs:man html} + python setup.py build_man build_docs # stub for travis-ci [testenv:travis] -passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH commands = - pip install "{toxinidir}" - pplugincache -q - py.test {posargs:-n 4 --cov-report= --cov pkgcore --cov-config "{toxinidir}/.coveragerc" pkgcore/test} + coverage run --parallel -m pytest {posargs:-v} "{envsitepackagesdir}"/pkgcore |