File: rules

package info (click to toggle)
php-phpstan-phpdoc-parser 1.16.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 844 kB
  • sloc: php: 10,144; xml: 143; makefile: 41; sh: 17
file content (21 lines) | stat: -rwxr-xr-x 451 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
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	phpab --output src/autoload.php src
	mkdir --parents vendor PHPStan
	ln -s ../src PHPStan/PhpDocParser
	phpabtpl \
		--require phpstan/phpdoc-parser \
		--require symfony/process \
		> debian/autoload.tests.php.tpl
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.tests.php.tpl \
		tests
	./build-abnfgen.sh

override_dh_auto_test:
	phpunit --bootstrap vendor/autoload.php