firefly-iii/cover.sh
2016-01-19 16:55:02 +01:00

27 lines
441 B
Bash
Executable File

#!/bin/bash
# set testing environment
cp .env.testing .env
# set cover:
cp phpunit.cover.xml phpunit.xml
# delete test databases:
if [ -f storage/database/testing.db ]
then
rm storage/database/testing.db
fi
if [ -f storage/database/testing-copy.db ]
then
rm storage/database/testing-copy.db
fi
# test!
phpdbg -qrr /usr/local/bin/phpunit
# restore .env file
cp .env.local .env
# restore cover
cp phpunit.default.xml phpunit.xml