File: rules

package info (click to toggle)
php-mockery 1.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,604 kB
  • sloc: php: 10,769; makefile: 188; python: 42
file content (28 lines) | stat: -rwxr-xr-x 696 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
28
#!/usr/bin/make -f
%:
	dh $@

override_dh_auto_build:
	phpabtpl composer.json > debian/autoload.php.tpl
	phpab \
		--template debian/autoload.php.tpl \
		--output library/Mockery/autoload.php \
		library
	mkdir --parents vendor
	phpabtpl --require mockery/mockery > debian/autoload.tests.php.tpl
	phpab \
		--template debian/autoload.tests.php.tpl \
		--output vendor/autoload.php \
		tests
	cp -a library/helpers.php library/Mockery/helpers.php
	# Build user documentation
	$(MAKE) -C docs html

override_dh_auto_clean:
	dh_auto_clean -O--sourcedirectory=docs

execute_after_dh_install:
	rm -f debian/php-mockery/usr/share/php/helpers.php

override_dh_auto_test:
	phpunit --include-path library