Setup the tests using the PYBUILD envvars
This commit is contained in:
parent
59564585f3
commit
20b3b96a52
8
debian/rules
vendored
8
debian/rules
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue