firefly-iii/pu.sh

22 lines
269 B
Bash
Raw Normal View History

2015-03-28 00:48:38 -05:00
#!/bin/bash
2015-04-03 00:44:44 -05:00
# backup .env file.
cp .env .env.backup
2015-03-28 00:51:54 -05:00
2015-04-03 00:44:44 -05:00
# set testing environment
cp .env.testing .env
2015-03-28 00:51:54 -05:00
2015-04-03 00:44:44 -05:00
# test!
2015-04-05 03:36:28 -05:00
if [ -z "$1" ]
then
phpunit --verbose
fi
if [ ! -z "$1" ]
then
phpunit --verbose tests/controllers/$1.php
fi
2015-04-03 00:44:44 -05:00
# restore .env file
mv .env.backup .env