File: rules

package info (click to toggle)
php-opis-closure 3.6.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 576 kB
  • sloc: php: 3,313; xml: 41; makefile: 17; sh: 8
file content (24 lines) | stat: -rwxr-xr-x 545 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
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	phpabtpl composer.json > debian/autoload.php.tpl
	phpab -t debian/autoload.php.tpl -o src/autoload.php src

override_dh_auto_test:
	phpabtpl 2>/dev/null \
		--require-file=../src/autoload.php > debian/autoload.php.test.tpl
	ln -s ../functions.php src/functions.php

	phpab \
		-o tests/autoload.php \
		-t debian/autoload.php.test.tpl \
		tests

	phpunit --no-coverage --bootstrap tests/autoload.php
	rm src/functions.php

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG.md