Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 237ed9a4 authored by gama's avatar gama Committed by gama
Browse files

[CI] Linter tentative implementation

parent 4edbd313
No related branches found
No related tags found
No related merge requests found
# As seen on https://gitlab.com/gitlab-examples/cpp-example/-/blob/master/.gitlab-ci.yml
image: gcc
stages:
- lint
- build
- test
# - deploy
lint:linux:
stage: lint
image: xianpengshen/clang-tools:18
script:
- find ./sandbox -type f -name '*.cpp' -o -name '*.cc' -exec clang-tidy --config-file=.clang-tidy {} -- -I. \; | tee clang-tidy.log
# Fail the job if errors were found:
- ! grep "warning" clang-tidy.log
rules:
# Executing for every commit on the main branch where C++ files were modified:
- if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == "master"
# changes:
# - "*.cpp"
# - "**/*.cpp"
artifacts:
expire_in: 2 days
paths:
- clang-tidy.log
build:linux:
stage: build
image: gcc
# tags:
# - linux
before_script:
- apt update && apt -y install make autoconf cmake doxygen
- apt update && apt -y install make autoconf cmake
script:
- mkdir build
- cd build
......@@ -41,6 +59,7 @@ build:linux:
# Run unit test
test:linux:
stage: test
image: gcc
# tags:
# - linux
script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment