firefly-iii/pu.sh
2015-04-05 10:36:28 +02:00

22 lines
269 B
Bash
Executable File

#!/bin/bash
# backup .env file.
cp .env .env.backup
# set testing environment
cp .env.testing .env
# test!
if [ -z "$1" ]
then
phpunit --verbose
fi
if [ ! -z "$1" ]
then
phpunit --verbose tests/controllers/$1.php
fi
# restore .env file
mv .env.backup .env