[med-svn] [Git][med-team/rosa][master] 4 commits: Try autopkgtest
Andreas Tille
gitlab at salsa.debian.org
Sat Jul 4 08:33:28 BST 2020
Andreas Tille pushed to branch master at Debian Med / rosa
Commits:
27184473 by Andreas Tille at 2020-07-04T08:54:42+02:00
Try autopkgtest
- - - - -
1d2030ce by Andreas Tille at 2020-07-04T08:55:32+02:00
Try easier install method
- - - - -
5217ce25 by Andreas Tille at 2020-07-04T09:00:16+02:00
Name the pure R package to r-other-rosa
- - - - -
cb2c5a6c by Andreas Tille at 2020-07-04T09:32:31+02:00
Adapt installation to new package name r-other-rosa
- - - - -
7 changed files:
- debian/control
- + debian/r-other-rosa.docs
- debian/rosa.install → debian/r-other-rosa.install
- − debian/rosa.dirs
- debian/rules
- + debian/tests/control
- + debian/tests/run-unit-test
Changes:
=====================================
debian/control
=====================================
@@ -16,8 +16,9 @@ Vcs-Git: https://salsa.debian.org/med-team/rosa.git
Testsuite: autopkgtest-pkg-python
Rules-Requires-Root: no
-Package: rosa
+Package: r-other-rosa
Architecture: all
+Section: gnu-r
Depends: ${R:Depends},
${misc:Depends},
r-cran-lsd
=====================================
debian/r-other-rosa.docs
=====================================
@@ -0,0 +1,2 @@
+debian/tests/run-unit-test
+tests
=====================================
debian/rosa.install → debian/r-other-rosa.install
=====================================
=====================================
debian/rosa.dirs deleted
=====================================
@@ -1 +0,0 @@
-usr/share/RoSA
=====================================
debian/rules
=====================================
@@ -7,15 +7,17 @@ export PYBUILD_INTERPRETERS=python3
include /usr/share/dh-r/r-cran.mk
-package:=rosa
-
%:
- echo $@
- dh $@ --buildsystem R;
+ dh $@ --with python3 --buildsystem R
+
+override_dh_auto_build:
+ dh_auto_build
+ dh_auto_build --sourcedirectory=python --buildsystem=pybuild
override_dh_auto_install:
dh_auto_install
- cd python && ( [ -r debian ] || ln -s ../debian . ) && pybuild --install
+ dh_auto_install --sourcedirectory=python --buildsystem=pybuild
+ #cd python && ( [ -r debian ] || ln -s ../debian . ) && pybuild --install
override_dh_auto_clean:
dh_auto_clean
@@ -25,3 +27,4 @@ override_dh_auto_clean:
override_dh_auto_test:
# still need to make up my mind
+ dh_auto_test || true
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,5 @@
+Tests: run-unit-test
+Depends: @, r-cran-testthat,
+Restrictions: allow-stderr
+
+
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+pkgname=rosa
+debname=r-other-rosa
+
+if [ "$AUTOPKGTEST_TMP" = "" ] ; then
+ AUTOPKGTEST_TMP=`mktemp -d /tmp/${debname}-test.XXXXXX`
+ trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
+fi
+cd $AUTOPKGTEST_TMP
+cp -a /usr/share/doc/$debname/tests/* $AUTOPKGTEST_TMP
+gunzip -r *
+for testfile in *.R; do
+ echo "BEGIN TEST $testfile"
+ LC_ALL=C.UTF-8 R --no-save < $testfile
+done
+
View it on GitLab: https://salsa.debian.org/med-team/rosa/-/compare/7242c4908c80d845938d7e0b124f7fd8029eaea4...cb2c5a6cb49105512d3f5d82625b9f6d3e1b9125
--
View it on GitLab: https://salsa.debian.org/med-team/rosa/-/compare/7242c4908c80d845938d7e0b124f7fd8029eaea4...cb2c5a6cb49105512d3f5d82625b9f6d3e1b9125
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/20200704/799be3d8/attachment-0001.html>
More information about the debian-med-commit
mailing list