Skip to content

Commit

Permalink
Report phpunit exit status to log
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Mar 24, 2019
1 parent 9646acd commit 3f92b1f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/drone/test-phpunit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,11 @@ if [[ -n "${FILES_EXTERNAL_TYPE}" ]]; then
$phpunit_cmd --configuration tests/phpunit-autotest-external.xml ${GROUP} --coverage-clover tests/output/coverage/autotest-external-clover-"${DB_TYPE}"-"${FILES_EXTERNAL_TYPE}".xml "${FILES_EXTERNAL_TEST_TO_RUN}"
else
$phpunit_cmd --configuration tests/phpunit-autotest.xml ${GROUP} --coverage-clover tests/output/coverage/autotest-clover-"${DB_TYPE}".xml
PHPUNIT_STATUS=$?
if [ ${PHPUNIT_STATUS} -eq 0 ]; then
echo "PHPunit exited with success status 0"
else
echo "PHPunit exited with failure status ${PHPUNIT_STATUS}"
fi
exit ${PHPUNIT_STATUS}
fi

0 comments on commit 3f92b1f

Please sign in to comment.