Skip to content
Commits on Source (2)
......@@ -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@gmail.com> Sun, 29 Dec 2019 18:12:25 +0300
......
......@@ -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
......
Tests: run-unit-test
Depends: @
Depends: @, python3-pytest-cov
Restrictions: allow-stderr
#!/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}