#! /bin/sh
patch -p1 < debian/patches/DEP-8/Use-installed-script-for-CI.patch
mkdir --parent vendor
phpabtpl \
	--require league/commonmark \
	--require mikehaertl/php-shellcommand \
	--require symfony/finder \
	> debian/autoload.tests.php.tpl
phpab \
	--output vendor/autoload.php \
	--template debian/autoload.tests.php.tpl \
	tests
phpunit
exit=$?
patch -Rp1 < debian/patches/DEP-8/Use-installed-script-for-CI.patch
exit $exit
