Fix codestyle check pipeline (#178)
* change continue-on-error to false * add manual trigger * revert manual trigger * test fail checkstyle * restore prev trigger and settings * fix syntax * fix exit code for codestyle * try to break pipeline * restore pipeline Co-authored-by: aanper <mail@s3f.ru>
This commit is contained in:
@@ -26,7 +26,7 @@ rust_syntax_rc=$?
|
||||
|
||||
if [[ $rust_syntax_rc -eq 0 ]] && [[ $c_syntax_rc -eq 0 ]]; then
|
||||
echo "Code looks fine for me!"
|
||||
exit 1
|
||||
exit 0
|
||||
fi
|
||||
|
||||
read -p "Do you want fix syntax? (y/n): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1
|
||||
@@ -38,4 +38,4 @@ cd $PROJECT_DIR
|
||||
# We use root in container and clang-format rewriting files. We'll need change owner to original
|
||||
local_user=$(stat -c '%u' .clang-format)
|
||||
$CLANG_FORMAT_BIN -style=file -i $C_FILES
|
||||
chown $local_user $C_FILES
|
||||
chown $local_user $C_FILES
|
||||
|
Reference in New Issue
Block a user