File: rules

package info (click to toggle)
junit5-system-exit 1.1.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 252 kB
  • sloc: java: 622; sh: 128; makefile: 20
file content (27 lines) | stat: -rwxr-xr-x 735 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/make -f

include /usr/share/javahelper/java-vars.mk
include /usr/share/dpkg/pkg-info.mk

NAME=junit5-system-exit

%:
	dh $@ --buildsystem=gradle --with javahelper,maven_repo_helper

override_dh_auto_build:
	dh_auto_build -- jar testsJar

execute_after_dh_auto_build:
	cd build/libs && \
		ln -sf $(NAME)-$(DEB_VERSION_UPSTREAM).jar $(NAME).jar && \
		ln -sf $(NAME)-$(DEB_VERSION_UPSTREAM)-tests.jar $(NAME)-tests.jar

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	java \
		-Djava.security.manager=allow \
		-jar /usr/share/java/junit-platform-console-standalone.jar \
		-cp build/libs/junit5-system-exit.jar:build/libs/junit5-system-exit-tests.jar \
		--scan-classpath \
		--fail-if-no-tests
endif