Skip to content
Snippets Groups Projects
Commit 935e2d81 authored by Philipp Rosenkranz's avatar Philipp Rosenkranz
Browse files

Merge pull request #3409 from phiros/dist_drone_script_fail_if_gh_label_not_set

dist: make drone build script fail if gh label not set
parents a583482c 8c9cbdae
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ trap 'rm -rf "$MYTMPDIR"' EXIT ...@@ -47,7 +47,7 @@ trap 'rm -rf "$MYTMPDIR"' EXIT
# Check for PRs and labels # Check for PRs and labels
FULL_CHECK=true FULL_CHECK=true
if [ -z "$FORCE_FULL_CHECK" ]; then if [ -z "$FORCE_FULL_CHECK" ]; then
if [ $CI_PULL_REQUEST != false ] && ! [ -z "$CI_PULL_REQUEST" ]; then if [ "$CI_PULL_REQUEST" != false ] && ! [ -z "$CI_PULL_REQUEST" ]; then
# Pull request # Pull request
# Check for labels # Check for labels
. ./dist/tools/pr_check/check_labels.sh . ./dist/tools/pr_check/check_labels.sh
...@@ -70,6 +70,7 @@ if $FULL_CHECK; then ...@@ -70,6 +70,7 @@ if $FULL_CHECK; then
|& tee -a "$MYTMPDIR/output.log" |& tee -a "$MYTMPDIR/output.log"
else else
echo "PR not ready for CI build. Only static-tests will be executed!" echo "PR not ready for CI build. Only static-tests will be executed!"
((FAILURES++))
exec_build_func static-tests "$@" |& tee -a "$MYTMPDIR/output.log" exec_build_func static-tests "$@" |& tee -a "$MYTMPDIR/output.log"
fi fi
......
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