From f0420fa21998e91f7fd7d218ca9969bcdba3be35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Wed, 29 Nov 2023 19:02:41 +0100 Subject: [PATCH] CI: add job that checks formatting with clang-format --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 29d3b31ab..f31c42529 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -177,6 +177,13 @@ test_octave: needs: [ "build_octave" ] when: manual +test_clang_format: + stage: test + script: + - meson setup -Dbuild_for=octave build-clang-format + - ninja -C build-clang-format clang-format-check + needs: [] + # For the sign and deploy jobs, we don’t use the “needs” keyword, since we # don’t want those jobs to start before the “test” and “pkg” stages have # succeeded. Hence we stick to the “dependencies” keyword. -- GitLab