mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 20:54:04 -06:00
19 lines
228 B
Bash
Executable File
19 lines
228 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# set testing environment
|
|
cp .env.testing .env
|
|
|
|
# test!
|
|
if [ -z "$1" ]
|
|
then
|
|
phpunit --verbose
|
|
fi
|
|
|
|
if [ ! -z "$1" ]
|
|
then
|
|
phpunit --verbose tests/repositories/$1.php
|
|
fi
|
|
|
|
# restore .env file
|
|
cp .env.local .env
|