mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -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!
|
# run it!
|
||||||
echo "Now running $firstFile"
|
echo "Now running $firstFile"
|
||||||
phpunit --verbose $firstFile
|
phpunit --verbose $firstFile
|
||||||
|
result=$?
|
||||||
fi
|
fi
|
||||||
if [ -f "$secondFile" ]
|
if [ -f "$secondFile" ]
|
||||||
then
|
then
|
||||||
# run it!
|
# run it!
|
||||||
echo "Now running $secondFile"
|
echo "Now running $secondFile"
|
||||||
phpunit --verbose $secondFile
|
phpunit --verbose $secondFile
|
||||||
|
result=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -54,4 +56,6 @@ fi
|
|||||||
cp .env.local .env
|
cp .env.local .env
|
||||||
|
|
||||||
# restore cover
|
# 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
|
then
|
||||||
echo "Running all tests..."
|
echo "Running all tests..."
|
||||||
phpunit
|
phpunit
|
||||||
|
result=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# test selective..
|
# test selective..
|
||||||
@ -43,12 +44,14 @@ then
|
|||||||
# run it!
|
# run it!
|
||||||
echo "Now running $firstFile"
|
echo "Now running $firstFile"
|
||||||
phpunit --verbose $firstFile
|
phpunit --verbose $firstFile
|
||||||
|
result=$?
|
||||||
fi
|
fi
|
||||||
if [ -f "$secondFile" ]
|
if [ -f "$secondFile" ]
|
||||||
then
|
then
|
||||||
# run it!
|
# run it!
|
||||||
echo "Now running $secondFile"
|
echo "Now running $secondFile"
|
||||||
phpunit --verbose $secondFile
|
phpunit --verbose $secondFile
|
||||||
|
result=$?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@ -58,3 +61,5 @@ fi
|
|||||||
|
|
||||||
# restore .env file
|
# restore .env file
|
||||||
cp .env.local .env
|
cp .env.local .env
|
||||||
|
|
||||||
|
exit ${result}
|
Loading…
Reference in New Issue
Block a user