File: rules

package info (click to toggle)
php-codecoverage 9.2.26%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 19,748 kB
  • sloc: php: 11,833; javascript: 10,145; xml: 1,351; makefile: 25
file content (33 lines) | stat: -rwxr-xr-x 1,208 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
31
32
33
#!/usr/bin/make -f
%:
	dh $@

TEMPL	= /Report/Html/Renderer/Template/

override_dh_auto_build:
	mkdir --parents vendor
	cp debian/autoload.php vendor
	phpabtpl composer.json > debian/autoload.php.tpl
	phpab --output $(CURDIR)/src/autoload.php \
		--template $(CURDIR)/debian/autoload.php.tpl \
		$(CURDIR)/src
	# Minify JavaScript file from source
	mkdir --parents build
	minify -o build/nv.d3.min.js \
	$(CURDIR)/debian/missing-sources/nv.d3.js
	# Minify CSS file from source
	cssmin < debian/missing-sources/nv.d3.css > build/nv.d3.min.css
	# Workaround to ensure the local class takes precedence during tests.
	mkdir --parents SebastianBergmann
	ln -s ../src SebastianBergmann/CodeCoverage

override_dh_auto_test:
	ln -s /usr/share/nodejs/bootstrap/dist/css/bootstrap.min.css	$(CURDIR)/src$(TEMPL)css
	ln -s /usr/share/nodejs/bootstrap/dist/js/bootstrap.min.js	$(CURDIR)/src$(TEMPL)js
	ln -s /usr/share/javascript/d3/d3.min.js			$(CURDIR)/src$(TEMPL)js
	ln -s /usr/share/javascript/jquery/jquery.min.js		$(CURDIR)/src$(TEMPL)js
	ln -s /usr/share/javascript/popper.js/popper.min.js		$(CURDIR)/src$(TEMPL)js
	XDEBUG_MODE=coverage phpunit

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog-*.md