firefly-iii/pu.sh

19 lines
223 B
Bash
Raw Normal View History

2015-03-28 00:48:38 -05:00
#!/bin/bash
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/helpers/$1.php
2015-04-05 03:36:28 -05:00
fi
2015-04-03 00:44:44 -05:00
# restore .env file
2015-04-20 14:57:20 -05:00
cp .env.local .env