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