Commit 81d33817 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

Merge branch 'clang-format-ci-check' into 'staging'

[ci/fix] quiet git-clang-format to avoid errors

See merge request !131
parents 50d67716 e91710c5
Pipeline #10247 passed with stages
in 3 minutes and 20 seconds
......@@ -35,9 +35,9 @@ clang-format:
- rm -f clang-format-diff
- target=$(git rev-parse $DEFAULT_MERGE_TARGET)
- nix-shell "$ARGOPKGS" -A ci.aml-format --run "git-clang-format --diff $target > clang-format-diff"
- nix-shell "$ARGOPKGS" -A ci.aml-format --run "git-clang-format --quiet --diff $target > clang-format-diff"
- lint=$(grep -v --color=never "no modified files to format" clang-format-diff || true)
- if [ ! -z "$lint" ]; then exit 1; else exit 0; fi
- if [ ! -z "$lint" ]; then echo "format errors, inspect the clang-format-diff artifact for info"; exit 1; else exit 0; fi
when: on_failure
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