File: rules

package info (click to toggle)
php-codesniffer 2.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 6,460 kB
  • ctags: 8,660
  • sloc: php: 40,311; xml: 9,505; pascal: 3,365; makefile: 16; sh: 6
file content (21 lines) | stat: -rwxr-xr-x 549 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 $@ --buildsystem=phppear --with phppear

override_dh_auto_configure:
	dh_auto_configure -O--buildsystem=phppear
	sed -i -r -e '/(LICENCE|README|CONTRIBUTING)/d' \
		-e '/" role="doc" /d' \
		-e 's/pre-commit" role="script"/pre-commit" role="doc"/' */package.xml

override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
	cd PHP_CodeSniffer-*/tests && \
		phpunit -d include_path=".:/usr/share/php:.." AllTests.php
else
	@echo "** tests disabled"
endif

get-orig-source:
	uscan --verbose --rename --force