Setup the tests using the PYBUILD envvars

This commit is contained in:
Ghislain Antony Vaillant 2018-03-05 22:38:59 +00:00
parent 59564585f3
commit 20b3b96a52

8
debian/rules vendored
View file

@ -2,9 +2,9 @@
export PYBUILD_NAME=pytest-mock
export PYBUILD_BEFORE_TEST=cp -r {dir}/*.egg-info {build_dir}
export PYBUILD_TEST_ARGS={dir}/test_pytest_mock.py
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/*.egg-info
%:
dh $@ --with python3,python2 --buildsystem=pybuild
override_dh_auto_test:
dh_auto_install
PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} -m pytest -v -x" dh_auto_test