Skip to content
Snippets Groups Projects
Commit 7655e66d authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

ci: leave C formatting to pre-commit

parent e5d0cc4c
No related branches found
No related tags found
1 merge request!61Add pre-commit hooks
......@@ -43,12 +43,8 @@ Check style:
variables:
STYLE_PATCH: ${CI_PROJECT_DIR}/style.patch
before_script:
- apk add clang-extra-tools git pre-commit python3
- apk add git pre-commit
script:
# Exclude the automatically generated mtime_iso8601.c:
- c_cxx_files=$(find "${CI_PROJECT_DIR}" -name 'mtime_iso8601.c' -prune -o \( -name '*.h' -o -name '*.c' \) -print)
- clang-format --style=file -i ${c_cxx_files}
- pre-commit run --color=always --all-files
- git -C "${CI_PROJECT_DIR}" diff --patch-with-raw > "${STYLE_PATCH}"
......
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