File: rules

package info (click to toggle)
php-phpstan-phpdoc-parser 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 2,476 kB
  • sloc: php: 21,130; makefile: 50; xml: 42; sh: 17
file content (25 lines) | stat: -rwxr-xr-x 730 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	phpab --output src/autoload.php src
	mkdir --parents vendor
	phpabtpl \
		--require-file ../src/autoload.php \
		--require doctrine/annotations \
		--require symfony/process \
		> debian/autoload.tests.php.tpl
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.tests.php.tpl \
		--exclude tests/PHPStan/Printer/data/printer-1-tabs-before.php \
		--exclude tests/PHPStan/Printer/data/printer-1-spaces-before.php \
		--exclude tests/PHPStan/Printer/data/printer-1-tabs-after.php \
		--exclude tests/PHPStan/Printer/data/printer-1-spaces-after.php \
		tests
	./build-abnfgen.sh

override_dh_auto_test:
	phpunit --no-coverage --bootstrap vendor/autoload.php