diff options
author | Tim Harder <radhermit@gmail.com> | 2015-03-29 15:36:11 -0400 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2015-03-29 15:36:11 -0400 |
commit | aa79a2248b7e1399e368ba5aed1124e8244d50d7 (patch) | |
tree | 5a8ce1ad0f818d7d3ac411cdbe66c6c9bf54d156 /tox.ini | |
parent | add .coveragerc file (diff) | |
download | pkgcore-aa79a2248b7e1399e368ba5aed1124e8244d50d7.tar.gz pkgcore-aa79a2248b7e1399e368ba5aed1124e8244d50d7.tar.bz2 pkgcore-aa79a2248b7e1399e368ba5aed1124e8244d50d7.zip |
tox: use .coveragerc file
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -3,7 +3,7 @@ envlist = py27, py33, py34 # skip for now since we can't easily specify skipping doc build skipsdist = True [testenv] -whitelist_externals = /bin/bash +whitelist_externals = bash # need to install manually using setup.py for now skip_install = True deps = @@ -11,14 +11,15 @@ deps = mock coverage commands = + pip install git+https://github.com/pkgcore/snakeoil.git --install-option="--install-headers={envdir}/include/snakeoil" + python setup.py build_ext -I {envdir}/include build -b {envdir}/build --disable-man-pages --disable-html-docs install --disable-man-pages --disable-html-docs bash -c '\ - pip install git+https://github.com/pkgcore/snakeoil.git --install-option="--install-headers={envdir}/include/snakeoil"; \ - python setup.py build_ext -I {envdir}/include build -b {envdir}/build --disable-man-pages --disable-html-docs install --disable-man-pages --disable-html-docs; \ - pushd {envsitepackagesdir}; \ - coverage run --source pkgcore --omit "pkgcore/test/*" -m py.test {posargs:pkgcore/test}; \ - coverage report -m; \ - coverage html -d {envdir}/coverage; \ - popd' + cp .coveragerc "{envsitepackagesdir}" && \ + pushd "{envsitepackagesdir}" && \ + coverage run -m py.test {posargs:pkgcore/test} && \ + coverage report -m && \ + coverage html -d "{envdir}/coverage" && \ + popd;' [testenv:doc] whitelist_externals = make |