File: rules

package info (click to toggle)
php-invoker 6.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 29,592 kB
  • sloc: php: 188; xml: 47; makefile: 16
file content (19 lines) | stat: -rwxr-xr-x 368 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 $@

override_dh_auto_build:
	phpab \
		--output src/autoload.php \
		src
	mkdir --parents vendor
	phpabtpl \
		--require-file ../src/autoload.php \
		> debian/autoload.tests.php.tpl
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.tests.php.tpl \
		tests

override_dh_auto_test:
	phpunit --bootstrap vendor/autoload.php