#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build:
	phpabtpl composer.json > debian/autoload.php.tpl

	# generate autoload-files. keep in sync with debian/tests/phpunit
	phpab --output src/autoload.php \
		--template debian/autoload.php.tpl \
		src

	phpab --template debian/autoload-test.php.tpl \
		--output test/autoload.php \
		test

override_dh_auto_test:
	# keep in sync with debian/tests/phpunit
#       Add it back with Twig 4.x and PHPUnit 11
#	phpunit --no-coverage --bootstrap test/autoload.php
	phpunit --bootstrap test/autoload.php debian/tests/
