tox.ini: add package target

This commit is contained in:
Benjamin Dauvergne 2016-02-23 00:41:52 +01:00
parent f421d3c4c4
commit e3bb9b8694
1 changed files with 9 additions and 1 deletions

10
tox.ini
View File

@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
envlist = coverage, nocoverage
envlist = coverage, nocoverage, package
[testenv:coverage]
usedevelop = true
@ -20,3 +20,11 @@ deps = pytest
pytest-random
commands =
py.test {posargs} tests
[testenv:package]
install_command = pip install --pre --find-links https://jenkins.entrouvert.org/packages/ {opts} {packages}
deps = setuptools
pip
eobuilder
commands =
sh -c "sudo -u eobuilder -E env HOME=/var/lib/eobuilder PATH=$PATH $VIRTUAL_ENV/bin/eobuilder-ctl -d wheezy,jessie `pwd`"