Attention une mise à jour du service Gitlab va être effectuée le mardi 30 novembre entre 17h30 et 18h00. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes. Cette mise à jour intermédiaire en version 14.0.12 nous permettra de rapidement pouvoir mettre à votre disposition une version plus récente.

Commit 4b3da605 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#1490 As the previous test worked, add cppcheck and clang static analysis and...

#1490 As the previous test worked, add cppcheck and clang static analysis and see if all is properly taken into account in sonar analysis.
parent ce79d9ab
Pipeline #97785 passed with stages
in 226 minutes and 7 seconds
......@@ -2,18 +2,18 @@ include:
- local: '/ExternalTools/Gitlab-CI/common.yml'
# cppcheck:
# stage: analysis
# image: registry.gitlab.inria.fr/morefem/analysistools/cppcheck:latest
# script:
# - python Scripts/Tools/run_cpp_check.py
# dependencies: []
# artifacts:
# name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-cppcheck-xml"
# expire_in: 2 days
# when: always
# paths:
# - morefem-cppcheck.xml
cppcheck:
stage: analysis
image: registry.gitlab.inria.fr/morefem/analysistools/cppcheck:latest
script:
- python Scripts/Tools/run_cpp_check.py
dependencies: []
artifacts:
name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-cppcheck-xml"
expire_in: 2 days
when: always
paths:
- morefem-cppcheck.xml
rats:
stage: analysis
......@@ -29,25 +29,25 @@ rats:
- morefem-rats.xml
# clang-static-analysis:
# stage: analysis
# image: registry.gitlab.inria.fr/morefem/analysistools/clang-sa:latest
# script:
# - python Scripts/Tools/run_clang_static_analyser.py
# artifacts:
# name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-clang-sa"
# expire_in: 2 days
# when: always
# paths:
# - build_4_sonarqube/analyzer_reports
clang-static-analysis:
stage: analysis
image: registry.gitlab.inria.fr/morefem/analysistools/clang-sa:latest
script:
- python Scripts/Tools/run_clang_static_analyser.py
artifacts:
name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-clang-sa"
expire_in: 2 days
when: always
paths:
- build_4_sonarqube/analyzer_reports
sonarqube:
stage: analysis_sonar
stage: generate_sonarqube
dependencies:
- rats
# - clang-static-analysis
# - cppcheck
- clang-static-analysis
- cppcheck
image: registry.gitlab.inria.fr/morefem/analysistools/sonarqube:latest
script:
- Scripts/Tools/run_sonarqube.sh
......@@ -56,9 +56,9 @@ sonarqube:
expire_in: 1 week
when: always
paths:
# - morefem-cppcheck.xml
- morefem-cppcheck.xml
- morefem-rats.xml
# - morefem-build.log
- morefem-build.log
- sonar.log
......@@ -2,7 +2,7 @@ stages:
- build_and_test
- check_warnings
- analysis
- analysis_sonar
- generate_sonarqube
# As suggested by https://blog.sparksuite.com/7-ways-to-speed-up-gitlab-ci-cd-times-29f60aab69f9
variables:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment