From b53fd73cebc21d19ee53cb4d6ebe86cd38f9e686 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Fri, 14 Apr 2023 12:10:11 +0100 Subject: [PATCH] ci: Add jobs for all supported versions of clang-format (14, 15, 16) --- utils/tests/gitlab-ci-code-linting.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/utils/tests/gitlab-ci-code-linting.yml b/utils/tests/gitlab-ci-code-linting.yml index 98a106691..5614a2666 100644 --- a/utils/tests/gitlab-ci-code-linting.yml +++ b/utils/tests/gitlab-ci-code-linting.yml @@ -3,18 +3,33 @@ # Contains jobs to check the ns-3 coding style and perform lint checking. # Clang-format -check-style-clang-format: +.check-style-clang-format: stage: .pre - image: ubuntu:latest + image: ubuntu:rolling before_script: - apt update - DEBIAN_FRONTEND=noninteractive apt install -y python3 - clang-format-14 + clang-format-$CLANG_FORMAT_VERSION script: - python3 utils/check-style-clang-format.py --verbose . timeout: 1h +check-style-clang-format-14: + extends: .check-style-clang-format + variables: + CLANG_FORMAT_VERSION: 14 + +check-style-clang-format-15: + extends: .check-style-clang-format + variables: + CLANG_FORMAT_VERSION: 15 + +check-style-clang-format-16: + extends: .check-style-clang-format + variables: + CLANG_FORMAT_VERSION: 16 + # Clang-tidy clang-tidy: stage: code-linting