File: rules

package info (click to toggle)
phpunit-exporter 7.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,220 kB
  • sloc: php: 11,205; xml: 61; makefile: 16
file content (20 lines) | stat: -rwxr-xr-x 561 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
%:
	dh $@

override_dh_auto_build:
	phpabtpl composer.json > debian/autoload.php.tpl
	phpab --template debian/autoload.php.tpl --output src/autoload.php src
	# Making sure the current class is used at build time
	mkdir --parent SebastianBergmann vendor
	ln -s ../src SebastianBergmann/Exporter
	phpabtpl \
		--require sebastian/exporter \
		> debian/autoload.tests.php.tpl
	phpab \
		--output vendor/autoload.php \
		--template debian/autoload.tests.php.tpl \
		tests/_fixture

override_dh_auto_test:
	phpunit --bootstrap vendor/autoload.php