[Python-modules-commits] [python-smstrade] 12/17: Copy tests to build_dir before tests, remove after tests

Jan Dittberner jandd at moszumanska.debian.org
Sat Jan 2 20:36:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

jandd pushed a commit to branch master
in repository python-smstrade.

commit 1e5beb9ce4139db1fd6f32a81a74c8e9f7c512fd
Author: Jan Dittberner <jandd at debian.org>
Date:   Sat Jan 2 21:06:01 2016 +0100

    Copy tests to build_dir before tests, remove after tests
---
 debian/changelog | 1 +
 debian/rules     | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 6e42454..57c07ba 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ python-smstrade (0.2.4-4) UNRELEASED; urgency=medium
   * Update copyright years
   * Build-Depend on python-all and python3-all to run tests with all
     supported Python versions
+  * Copy tests to build_dir before tests, remove after tests
 
  -- Jan Dittberner <jandd at debian.org>  Sat, 02 Jan 2016 19:16:27 +0100
 
diff --git a/debian/rules b/debian/rules
index 5f2ad8b..10c8693 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,9 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 export PYBUILD_NAME=smstrade
+export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir}
 export PYBUILD_TEST_ARGS=unset http_proxy ; unset https_proxy ; cd {build_dir} ; {interpreter} -m pytest
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests
 # do not install scripts for Python 2 they are provided by the Python 3 package
 export PYBUILD_AFTER_INSTALL_python2=rm -rf {destdir}/usr/bin
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-smstrade.git



More information about the Python-modules-commits mailing list