File: rules

package info (click to toggle)
php-lorenzo-pinky 1.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 196 kB
  • sloc: php: 822; makefile: 14
file content (19 lines) | stat: -rwxr-xr-x 445 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f
%:
	dh $@ --with phpcomposer

override_dh_auto_build:
	cp -f debian/autoload.php src/
	# Mimic install path for tests
	mkdir --parent data
	ln -sf ../src data/Pinky

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	phpunit --do-not-cache-result --bootstrap src/autoload.php tests/
else
	@echo "** tests disabled"
endif

override_dh_installchangelogs:
	dh_installchangelogs debian/upstream/changelog