From 2832d308f10dd83e1f2318870d620470aeb0aadb Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 24 Jan 2016 15:55:48 +0100 Subject: [PATCH] Optimize scripts. --- cover.sh | 6 +++++- pu.sh | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) 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