From e39167d9a96cda444f84fb976a188c6caa28d5a0 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Fri, 27 Oct 2023 17:06:39 -0300 Subject: [PATCH] ci: add job to check the CMake format --- utils/tests/gitlab-ci-code-linting.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/utils/tests/gitlab-ci-code-linting.yml b/utils/tests/gitlab-ci-code-linting.yml index 47b076baf..968de090d 100644 --- a/utils/tests/gitlab-ci-code-linting.yml +++ b/utils/tests/gitlab-ci-code-linting.yml @@ -119,3 +119,14 @@ spell-check: # Check source code and commit messages - codespell -f -C0 ./ timeout: 1h + +# Check cmake format +cmake-format: + stage: .pre + image: python:latest + before_script: + - pip install pyyaml cmake cmake-format ninja + script: + - ./ns3 configure --enable-modules=core + - ./ns3 build cmake-format-check + timeout: 1h