mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Trigger a build.
This commit is contained in:
parent
e54ddcb8b0
commit
1c3bffdc50
@ -26,7 +26,7 @@ To get to know Firefly, and to see if it fits you, check out these resources:
|
|||||||
and the philosophy behind it.
|
and the philosophy behind it.
|
||||||
|
|
||||||
|
|
||||||
#### About the name (if you care)
|
#### About the name (should you care)
|
||||||
|
|
||||||
It's III, or 3, because [version 2](https://github.com/JC5/Firefly) and version 1 (not online) preceded it. It has been growing steadily ever since.
|
It's III, or 3, because [version 2](https://github.com/JC5/Firefly) and version 1 (not online) preceded it. It has been growing steadily ever since.
|
||||||
|
|
||||||
|
24
pu.sh
24
pu.sh
@ -9,9 +9,31 @@ then
|
|||||||
phpunit --verbose
|
phpunit --verbose
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# directories to look in:
|
||||||
|
dirs=("controllers" "database" "factories" "helpers" "models" "middleware" "repositories" "support")
|
||||||
|
|
||||||
if [ ! -z "$1" ]
|
if [ ! -z "$1" ]
|
||||||
then
|
then
|
||||||
phpunit --verbose tests/helpers/$1.php
|
for i in "${dirs[@]}"
|
||||||
|
do
|
||||||
|
firstFile="./tests/$i/$1.php"
|
||||||
|
secondFile="./tests/$i/$1Test.php"
|
||||||
|
if [ -f "$firstFile" ]
|
||||||
|
then
|
||||||
|
# run it!
|
||||||
|
phpunit --verbose $firstFile
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
if [ -f "$secondFile" ]
|
||||||
|
then
|
||||||
|
# run it!
|
||||||
|
phpunit --verbose $secondFile
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# restore .env file
|
# restore .env file
|
||||||
|
Loading…
Reference in New Issue
Block a user