Skip to content
Snippets Groups Projects
Commit 4ec90776 authored by David Gilbert's avatar David Gilbert :bug:
Browse files

Update .gitlab-ci.yml file

parent f82ed86e
No related branches found
No related tags found
3 merge requests!59Draft: Test/clang format,!58Feature/clang tidy ci,!57Add clang-format pipeline
Pipeline #332906 passed
...@@ -58,7 +58,7 @@ clang-format: ...@@ -58,7 +58,7 @@ clang-format:
allow_failure: false allow_failure: false
script: script:
- clang-format --version - clang-format --version
- git fetch $CI_MERGE_REQUEST_TARGET_BRANCH_NAME --depth 1 - git fetch origin $CI_MERGE_REQUEST_TARGET_BRANCH_NAME --depth 1
- echo $CI_MERGE_REQUEST_DIFF_BASE_SHA - echo $CI_MERGE_REQUEST_DIFF_BASE_SHA
- linter_errors=$(unbuffer git-clang-format --commit "$CI_MERGE_REQUEST_DIFF_BASE_SHA" *.h *.cpp -q --diff | grep -v --color=always "no modified files to format" || true) - linter_errors=$(unbuffer git-clang-format --commit "$CI_MERGE_REQUEST_DIFF_BASE_SHA" *.h *.cpp -q --diff | grep -v --color=always "no modified files to format" || true)
- echo "$linter_errors" - echo "$linter_errors"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment