File: rules

package info (click to toggle)
php-mockery 1.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,384 kB
  • sloc: php: 10,277; makefile: 187; python: 42
file content (27 lines) | stat: -rwxr-xr-x 627 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 $@ --with phpcomposer,sphinxdoc

override_dh_auto_build:
	phpab \
		--template debian/autoload.php.tpl \
		--output library/Mockery/autoload.php \
		library
	mkdir --parents vendor
	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:
	rm -rf tests/PHP80
	phpunit --include-path library