Small updates [skip ci]

This commit is contained in:
James Cole
2015-04-03 07:44:44 +02:00
parent 720926c50d
commit 64c031c7fe
3 changed files with 19 additions and 9 deletions

13
pu.sh
View File

@@ -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