diff --git a/cover.sh b/cover.sh index 111bdf08d6..3f7cd1b6bf 100755 --- a/cover.sh +++ b/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 \ No newline at end of file +cp phpunit.default.xml phpunit.xml + +exit ${result} \ No newline at end of file diff --git a/pu.sh b/pu.sh index d1b96546f1..f3efd0a96b 100755 --- a/pu.sh +++ b/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} \ No newline at end of file