[med-svn] [Git][med-team/q2-demux][master] 2 commits: Needs qiime and q2templates >= 2019.10.0

Liubov Chuprikova gitlab at salsa.debian.org
Sun Dec 29 15:56:00 GMT 2019



Liubov Chuprikova pushed to branch master at Debian Med / q2-demux


Commits:
c8fac723 by Liubov Chuprikova at 2019-12-29T15:26:34Z
Needs qiime and q2templates >= 2019.10.0

- - - - -
3d03a319 by Liubov Chuprikova at 2019-12-29T15:51:56Z
Add autopkgtest

- - - - -


4 changed files:

- debian/changelog
- debian/control
- debian/tests/control
- debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -4,6 +4,8 @@ q2-demux (2019.10.0-1) UNRELEASED; urgency=medium
   * debhelper-compat 12
   * Standards-Version: 4.4.1
   * Respect DEB_BUILD_OPTIONS in override_dh_auto_test target
+  * Needs qiime and q2templates >= 2019.10.0
+  * Add autopkgtest
 
  -- Liubov Chuprikova <chuprikovalv at gmail.com>  Sun, 29 Dec 2019 18:12:25 +0300
 


=====================================
debian/control
=====================================
@@ -14,9 +14,9 @@ Build-Depends: debhelper-compat (= 12),
                python3-skbio,
                python3-psutil,
                python3-seaborn,
-               qiime,
+               qiime (>= 2019.10.0),
                q2-types,
-               q2templates
+               q2templates (>= 2019.10.0)
 Standards-Version: 4.4.1
 Vcs-Browser: https://salsa.debian.org/med-team/q2-demux
 Vcs-Git: https://salsa.debian.org/med-team/q2-demux.git


=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
 Tests: run-unit-test
-Depends: @
+Depends: @, python3-pytest-cov
 Restrictions: allow-stderr


=====================================
debian/tests/run-unit-test
=====================================
@@ -1,18 +1,22 @@
 #!/bin/bash
 set -e
 
-pkg=#PACKAGENAME#
+pkg=q2_demux
 
 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
   AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
-  # Double quote below to expand the temporary directory variable now versus
-  # later is on purpose.
-  # shellcheck disable=SC2064
   trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
 fi
 
-cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
+cp -a /usr/lib/python3/dist-packages/${pkg}* "${AUTOPKGTEST_TMP}"
+mkdir ${AUTOPKGTEST_TMP}/q2_demux/_summarize/assets/dist
 
 cd "${AUTOPKGTEST_TMP}"
 
-#do_stuff_to_test_package#
+if [ ! -f /usr/lib/python3/dist-packages/pytest_cov/__init__.py ] ; then
+	echo "Please install package python3-pytest-cov to run this script"
+	exit 1
+fi
+
+# Run build-time tests
+py.test-3 --cov=${pkg}



View it on GitLab: https://salsa.debian.org/med-team/q2-demux/compare/c12b365dc8fdb09d666a37ad031696acc19d1056...3d03a3196958a8b2520c77fa3a69f9eea12ec846

-- 
View it on GitLab: https://salsa.debian.org/med-team/q2-demux/compare/c12b365dc8fdb09d666a37ad031696acc19d1056...3d03a3196958a8b2520c77fa3a69f9eea12ec846
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20191229/2cf541cf/attachment-0001.html>


More information about the debian-med-commit mailing list