File: rules

package info (click to toggle)
php-fruitcake-php-cors 1.3.0-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 244 kB
  • sloc: php: 745; makefile: 10
file content (14 lines) | stat: -rwxr-xr-x 405 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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

override_dh_auto_test:
	phpabtpl --require-file ../src/autoload.php > debian/autoload.tests.php.tpl
	mkdir -p vendor
	phpab -t debian/autoload.tests.php.tpl -o vendor/autoload.php tests
	phpunit --bootstrap vendor/autoload.php