Commit 9d9e20bd authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Check clang-format at CI stage

parent 814fbda2
......@@ -26,6 +26,15 @@ cache:
paths:
- build/
clang_format:
stage: build
before_script:
- apt-get update
- apt-get install --yes --no-install-recommends git clang-format-10
script:
- find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format-10 -i {} \;
- git diff --exit-code
build:
stage: build
script:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment