mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Small updates [skip ci]
This commit is contained in:
13
pu.sh
13
pu.sh
@@ -1,10 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# create DB if not exists
|
||||
# backup .env file.
|
||||
cp .env .env.backup
|
||||
|
||||
if [ ! -f tests/database/db.sqlite ]; then
|
||||
touch tests/database/db.sqlite
|
||||
php artisan migrate --seed
|
||||
fi
|
||||
# set testing environment
|
||||
cp .env.testing .env
|
||||
|
||||
# test!
|
||||
phpunit --verbose
|
||||
|
||||
# restore .env file
|
||||
mv .env.backup .env
|
||||
|
Reference in New Issue
Block a user