mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-02 13:39:19 -06:00
30 lines
470 B
Bash
Executable File
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
|