[Git][clojure-team/clj-time-clojure][debian/main] 5 commits: Check DEB_BUILD_OPTIONS in override_dh_auto_test

Jérôme Charaoui (@lavamind) gitlab at salsa.debian.org
Tue Jun 21 02:50:18 BST 2022



Jérôme Charaoui pushed to branch debian/main at Debian Clojure Maintainers / clj-time-clojure


Commits:
8c37e816 by Jérôme Charaoui at 2022-06-20T21:23:22-04:00
Check DEB_BUILD_OPTIONS in override_dh_auto_test

- - - - -
d717bb44 by Jérôme Charaoui at 2022-06-20T21:23:47-04:00
Switch autopkgtest unittest to buildtitude system

Also adds missing "test" classpath component

- - - - -
2864b4c7 by Jérôme Charaoui at 2022-06-20T21:25:08-04:00
Add d/gbp.conf

- - - - -
6625d930 by Jérôme Charaoui at 2022-06-20T21:29:27-04:00
Update d/changelog

- - - - -
84ca3d3e by Jérôme Charaoui at 2022-06-20T21:29:38-04:00
Bump Standards-Version to 4.6.1, no changes needed

- - - - -


6 changed files:

- debian/changelog
- debian/control
- + debian/gbp.conf
- debian/rules
- debian/tests/control
- debian/tests/unittests


Changes:

=====================================
debian/changelog
=====================================
@@ -1,9 +1,17 @@
-clj-time-clojure (0.15.2-2) UNRELEASED; urgency=normal
+clj-time-clojure (0.15.2-2) unstable; urgency=medium
+
+  * Team upload.
 
   [ Louis-Philippe Véronneau ]
   * d/control: New email for the Clojure Team.
 
- -- Louis-Philippe Véronneau <pollo at debian.org>  Sat, 08 Jan 2022 18:33:21 -0500
+  [ Jérôme Charaoui ]
+  * Check DEB_BUILD_OPTIONS in override_dh_auto_test
+  * Switch autopkgtest unittest to buildtitude system
+  * Add d/gbp.conf
+  * Bump Standards-Version to 4.6.1, no changes needed
+
+ -- Jérôme Charaoui <jerome at riseup.net>  Mon, 20 Jun 2022 21:26:03 -0400
 
 clj-time-clojure (0.15.2-1) unstable; urgency=medium
 


=====================================
debian/control
=====================================
@@ -14,7 +14,7 @@ Build-Depends: debhelper-compat (= 13),
                libnrepl-clojure <!nocheck>,
                libcomplete-clojure <!nocheck>,
                leiningen,
-Standards-Version: 4.5.1
+Standards-Version: 4.6.1
 Vcs-Git: https://salsa.debian.org/clojure-team/clj-time-clojure.git
 Vcs-Browser: https://salsa.debian.org/clojure-team/clj-time-clojure
 Homepage: https://github.com/clj-time/clj-time


=====================================
debian/gbp.conf
=====================================
@@ -0,0 +1,3 @@
+[DEFAULT]
+debian-branch = debian/main
+pristine-tar = true


=====================================
debian/rules
=====================================
@@ -20,7 +20,9 @@ override_dh_auto_build:
 	cd target && ln -sf $(NAME)-$(DEB_VERSION_UPSTREAM).jar $(NAME).jar
 
 override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	lein test
+endif
 
 override_jh_installlibs:
 	jh_installlibs target/$(NAME).jar


=====================================
debian/tests/control
=====================================
@@ -3,4 +3,4 @@ Depends: @, clojure
 Restrictions: superficial, allow-stderr
 
 Tests: unittests
-Depends: @, clojure, libjava-jdbc-clojure, libtest-check-clojure
+Depends: @, clojure, libbultitude-clojure, libjava-jdbc-clojure, libtest-check-clojure


=====================================
debian/tests/unittests
=====================================
@@ -1,9 +1,15 @@
 #!/bin/sh
 set -efu
 
-CLASSPATH=/usr/share/java/clj-time.jar:/usr/share/java/clojure.jar:/usr/share/java/joda-time.jar:/usr/share/java/java.jdbc.jar:/usr/share/java/test.check.jar
+CLASSPATH=/usr/share/java/clj-time.jar:/usr/share/java/clojure.jar:/usr/share/java/bultitude.jar:/usr/share/java/joda-time.jar:/usr/share/java/java.jdbc.jar:/usr/share/java/test.check.jar:test
 
 cp -a test test_spec "$AUTOPKGTEST_TMP"
 cd "$AUTOPKGTEST_TMP"
 
-find . -name "*.clj" | xargs clojure -cp $CLASSPATH
+clojure \
+    -cp $CLASSPATH \
+    -e "(require '[clojure.test])" \
+    -e "(require '[bultitude.core :as b])" \
+    -e '(def all-tests (b/namespaces-on-classpath :classpath "test"))' \
+    -e "(map #(require %) all-tests)" \
+    -e '(System/exit (if (clojure.test/successful? (clojure.test/run-all-tests #"clj-time\.\S+-test")) 0 1))'



View it on GitLab: https://salsa.debian.org/clojure-team/clj-time-clojure/-/compare/8b80dc1b33f5282d8d99379897e7ddcea5011c3e...84ca3d3e21db817488f76235b9083f2c584ddccd

-- 
View it on GitLab: https://salsa.debian.org/clojure-team/clj-time-clojure/-/compare/8b80dc1b33f5282d8d99379897e7ddcea5011c3e...84ca3d3e21db817488f76235b9083f2c584ddccd
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/pkg-java-commits/attachments/20220621/cf287940/attachment.htm>


More information about the pkg-java-commits mailing list