File: rules

package info (click to toggle)
php-doctrine-annotations 2.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,552 kB
  • sloc: php: 8,471; xml: 26; makefile: 23
file content (27 lines) | stat: -rwxr-xr-x 835 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
25
26
27
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	phpabtpl composer.json > debian/autoload.php.tpl
	phpab \
		--output lib/Doctrine/Common/Annotations/autoload.php \
		--template debian/autoload.php.tpl \
		lib/Doctrine/Common/Annotations
	mkdir --parents vendor
	phpabtpl \
		--require-file ../lib/Doctrine/Common/Annotations/autoload.php \
		--require doctrine/cache \
		--require symfony/cache \
		--require-file ../tests/Doctrine/Tests/Common/Annotations/Fixtures/functions.php \
		--require-file ../tests/Doctrine/Tests/Common/Annotations/Fixtures/SingleClassLOC1000.php \
		> debian/autoload.tests.php.tpl
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.tests.php.tpl \
		--exclude */ClassNoNamespaceNoComment.php \
		tests/Doctrine/Tests

override_dh_auto_test:
	phpunit --exclude-group nophpunit11