From d0fe6b613c3b7b17e49a617ee0f541edb002ba40 Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Tue, 20 Sep 2022 13:23:50 +0100 Subject: [PATCH] ci: Add clang-tidy CI job --- utils/tests/gitlab-ci-coding-style.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/utils/tests/gitlab-ci-coding-style.yml b/utils/tests/gitlab-ci-coding-style.yml index 426327e52..8da9a3db6 100644 --- a/utils/tests/gitlab-ci-coding-style.yml +++ b/utils/tests/gitlab-ci-coding-style.yml @@ -12,3 +12,15 @@ check-style-clang-format: clang-format-14 script: - python3 utils/check-style-clang-format.py . + +clang-tidy: + stage: coding-style + image: ubuntu:latest + before_script: + - apt update + - DEBIAN_FRONTEND=noninteractive apt install -y + clang cmake + clang-tidy-14 + script: + - ./ns3 configure --enable-examples --enable-tests --enable-clang-tidy + - run-clang-tidy-14 -p cmake-cache/ -quiet | grep -A 5 "error:"