mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-16 18:25:00 -06:00
Optimize scripts.
This commit is contained in:
parent
a7ecdf715f
commit
2832d308f1
6
cover.sh
6
cover.sh
@ -38,12 +38,14 @@ then
|
||||
# run it!
|
||||
echo "Now running $firstFile"
|
||||
phpunit --verbose $firstFile
|
||||
result=$?
|
||||
fi
|
||||
if [ -f "$secondFile" ]
|
||||
then
|
||||
# run it!
|
||||
echo "Now running $secondFile"
|
||||
phpunit --verbose $secondFile
|
||||
result=$?
|
||||
fi
|
||||
|
||||
|
||||
@ -54,4 +56,6 @@ fi
|
||||
cp .env.local .env
|
||||
|
||||
# restore cover
|
||||
cp phpunit.default.xml phpunit.xml
|
||||
cp phpunit.default.xml phpunit.xml
|
||||
|
||||
exit ${result}
|
5
pu.sh
5
pu.sh
@ -27,6 +27,7 @@ if [ -z "$1" ]
|
||||
then
|
||||
echo "Running all tests..."
|
||||
phpunit
|
||||
result=$?
|
||||
fi
|
||||
|
||||
# test selective..
|
||||
@ -43,12 +44,14 @@ then
|
||||
# run it!
|
||||
echo "Now running $firstFile"
|
||||
phpunit --verbose $firstFile
|
||||
result=$?
|
||||
fi
|
||||
if [ -f "$secondFile" ]
|
||||
then
|
||||
# run it!
|
||||
echo "Now running $secondFile"
|
||||
phpunit --verbose $secondFile
|
||||
result=$?
|
||||
fi
|
||||
|
||||
|
||||
@ -58,3 +61,5 @@ fi
|
||||
|
||||
# restore .env file
|
||||
cp .env.local .env
|
||||
|
||||
exit ${result}
|
Loading…
Reference in New Issue
Block a user