firefly-iii/pu.sh
2016-01-20 10:47:29 +01:00

30 lines
470 B
Bash
Executable File

#!/bin/bash
# set testing environment
cp .env.testing .env
# set default phpunit.
cp phpunit.default.xml phpunit.xml
# "create" default attachment:
touch storage/upload/at-1.data
touch storage/upload/at-2.data
# 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!
phpunit
# restore .env file
cp .env.local .env