mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Set up clang-format in CI
This commit is contained in:
committed by
Antonio Sánchez
parent
2c4541f735
commit
85efa83292
11
ci/checkformat.gitlab-ci.yml
Normal file
11
ci/checkformat.gitlab-ci.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
checkformat:clangformat:
|
||||
stage: checkformat
|
||||
image: ubuntu:23.10
|
||||
only:
|
||||
- merge_requests
|
||||
allow_failure: true
|
||||
before_script:
|
||||
- apt-get update -y
|
||||
- apt-get install -y --no-install-recommends git clang-format-17
|
||||
script:
|
||||
- git clang-format-17 --diff --commit ${CI_MERGE_REQUEST_DIFF_BASE_SHA}
|
||||
Reference in New Issue
Block a user