Files
firefly-iii/pu.sh

22 lines
316 B
Bash
Raw Normal View History

2016-01-16 09:15:24 +01:00
#!/bin/bash
# set testing environment
cp .env.testing .env
2016-01-19 16:55:02 +01:00
# delete test databases:
if [ -f storage/database/testing.db ]
2016-01-16 09:15:24 +01:00
then
2016-01-19 16:55:02 +01:00
rm storage/database/testing.db
2016-01-16 09:15:24 +01:00
fi
2016-01-19 16:55:02 +01:00
if [ -f storage/database/testing-copy.db ]
then
rm storage/database/testing-copy.db
fi
# test!
phpunit
2016-01-16 09:15:24 +01:00
# restore .env file
cp .env.local .env