#!/bin/sh
set -e

mkdir --parents vendor
phpab --output vendor/autoload.php \
      --template debian/autoload.php.tpl \
      application index.php plugins shaarli_version.php

SANDBOX=$(mktemp --directory)
ln --symbolic "$SANDBOX" sandbox

sudo phpunit --no-coverage --bootstrap tests/bootstrap.php --testsuite unit-tests --exclude-group nophpunit11
