File: rules

package info (click to toggle)
php-nesbot-carbon 2.65.0-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 18,280 kB
  • sloc: php: 157,346; xml: 42; makefile: 26; sh: 12
file content (30 lines) | stat: -rwxr-xr-x 828 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
29
30
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	dh_auto_build
	cp -r lazy/Carbon/* src/Carbon/
	phpabtpl --basedir src composer.json > debian/autoload.php.tpl
	phpab \
		-o src/Carbon/autoload.php \
		-t debian/autoload.php.tpl \
		--blacklist 'carbon\\lazytranslator' \
		--blacklist 'carbon\\messageformatter\\lazymessageformatter' \
		--blacklist 'carbon\\phpstan\\abstractreflectionmacro' \
		--blacklist 'carbon\\phpstan\\lazymacro' \
		src/Carbon

override_dh_auto_test:
	phpabtpl \
		--require nesbot/carbon \
		--require doctrine/dbal \
		> debian/autoload.php.test.tpl
	phpab \
		-o tests/autoload.php \
		-t debian/autoload.php.test.tpl \
		--blacklist 'carbon\\cli' \
		--blacklist 'symfony\\component\\translation\\translatorinterface' \
		tests
	phpunit -v --bootstrap tests/autoload.php --include-path src