#!/bin/sh

set -eux

phpabtpl --require predis --require matomo/cache 2>/dev/null > debian/autoload.tests.php.tpl
phpab \
	--output tests/autoload.php \
	--template debian/autoload.tests.php.tpl \
	tests

redis-server --daemonize yes
memcached -d -u memcache

phpunit --do-not-fail-on-phpunit-warning --no-coverage --do-not-cache-result --bootstrap ./tests/autoload.php --exclude-group=php-file
