File: rules

package info (click to toggle)
php-nesbot-carbon 2.32.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 17,492 kB
  • sloc: php: 149,847; xml: 45; makefile: 17; sh: 7
file content (21 lines) | stat: -rwxr-xr-x 433 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
#!/usr/bin/make -f

%:
	dh $@ --with phpcomposer

override_dh_auto_build:
	dh_auto_build
	phpab -o src/Carbon/autoload.php -t debian/autoload.php.tpl src/Carbon

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	mkdir -p vendor
	phpab \
		-o vendor/autoload.php \
		-t debian/autoload.php.test.tpl \
		--blacklist 'carbon\\cli' \
		tests
	phpunit -v --include-path src
else
	@echo "** tests disabled"
endif