ci: Add jobs for all supported versions of clang-format (14, 15, 16)

This commit is contained in:
Eduardo Almeida
2023-04-14 12:10:11 +01:00
parent 8731dd1fa2
commit b53fd73ceb

View File

@@ -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