Skip to content
Snippets Groups Projects
Unverified Commit 7efc6b26 authored by Lukas Reschke's avatar Lukas Reschke
Browse files

Set exit code to 1 if integration test is failing

Before it just checked the unit tests and ignored the integration test results. See https://drone.nextcloud.com/nextcloud/server/3374/35

 for details.

Signed-off-by: default avatarLukas Reschke <lukas@statuscode.ch>
parent e3dfe2cb
No related branches found
No related tags found
No related merge requests found
...@@ -210,16 +210,19 @@ EOF ...@@ -210,16 +210,19 @@ EOF
rm -rf "coverage-external-html-$1-$name" rm -rf "coverage-external-html-$1-$name"
mkdir "coverage-external-html-$1-$name" mkdir "coverage-external-html-$1-$name"
"$PHPUNIT" --configuration phpunit-autotest-external.xml --log-junit "autotest-external-results-$1-$name.xml" --coverage-clover "autotest-external-clover-$1-$name.xml" --coverage-html "coverage-external-html-$1-$name" "$FILES_EXTERNAL_BACKEND_PATH/$testToRun" "$PHPUNIT" --configuration phpunit-autotest-external.xml --log-junit "autotest-external-results-$1-$name.xml" --coverage-clover "autotest-external-clover-$1-$name.xml" --coverage-html "coverage-external-html-$1-$name" "$FILES_EXTERNAL_BACKEND_PATH/$testToRun"
RESULT=$?
else else
echo "No coverage" echo "No coverage"
"$PHPUNIT" --configuration phpunit-autotest-external.xml --log-junit "autotest-external-results-$1-$name.xml" "$FILES_EXTERNAL_BACKEND_PATH/$testToRun" "$PHPUNIT" --configuration phpunit-autotest-external.xml --log-junit "autotest-external-results-$1-$name.xml" "$FILES_EXTERNAL_BACKEND_PATH/$testToRun"
RESULT=$?
fi fi
else else
DOEXIT=1 DOEXIT=1
fi fi
if [[ $? -ne 0 ]]; then
echo "Error during phpunit execution ... terminating"
exit 1
fi
# calculate stop file # calculate stop file
stopFile=`echo "$startFile" | sed 's/start/stop/'` stopFile=`echo "$startFile" | sed 's/start/stop/'`
echo "stop: $stopFile" echo "stop: $stopFile"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment