(ci): make CI pass on non-blocking errors (#1117)

This commit is contained in:
Jethro Kuan
2020-09-19 16:45:38 +08:00
committed by GitHub
parent 18c0f2da7f
commit f5257cefa7

View File

@ -592,9 +592,9 @@ function debug {
fi fi
} }
function error_continue { function error_nonblocking {
echo_color red "ERROR ($(ts)): $@" >&2 echo_color red "ERROR ($(ts)): $@" >&2
((errors++)) ((errors_nonblocking++))
} }
function error { function error {
@ -769,7 +769,7 @@ function lint-package {
--funcall package-lint-batch-and-exit \ --funcall package-lint-batch-and-exit \
"${files_project_feature[@]}" \ "${files_project_feature[@]}" \
&& success "Linting package finished without errors." \ && success "Linting package finished without errors." \
|| error_continue "Linting package failed." || error_nonblocking "Linting package failed."
} }
function lint-regexps { function lint-regexps {
@ -838,6 +838,7 @@ test_files_regexp='^((tests?|t)/)|-test.el$|^test-'
emacs_command=("emacs") emacs_command=("emacs")
errors=0 errors=0
errors_nonblocking=0
verbose=0 verbose=0
compile=true compile=true
arg_batch="--batch" arg_batch="--batch"
@ -1078,9 +1079,9 @@ done
if [[ $errors -gt 0 ]] if [[ $errors -gt 0 ]]
then then
log_color red "Finished with $errors errors." log_color red "Finished with $errors errors and $errors_nonblocking non-blocking errors."
else else
success "Finished without errors." success "Finished with $errors errors and $errors_nonblocking non-blocking errors."
fi fi
exit $errors exit $errors