File: rules

package info (click to toggle)
phpunit-comparator 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 324 kB
  • ctags: 369
  • sloc: php: 1,917; xml: 40; makefile: 18; sh: 5
file content (23 lines) | stat: -rwxr-xr-x 478 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
#!/usr/bin/make -f
%:
	dh $@ --with phpcomposer

override_dh_auto_build:
	phpab	--output src/autoload.php \
		--template debian/autoload.php.tpl \
		src
	dh_auto_build

override_dh_auto_clean:
	rm -rf SebastianBergmann
	dh_auto_clean

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	# Ensure the local class takes precedence
	mkdir --parents SebastianBergmann
	ln -s ../src SebastianBergmann/Comparator
	phpunit
else
	@echo "** tests disabled"
endif