analysis.yml 2.12 KB
Newer Older
1 2 3 4
cppcheck:
    stage: analysis
    image: registry.gitlab.inria.fr/morefem/analysistools/cppcheck:latest
    script:
5
        - python Scripts/CI/CppCheck/run_cpp_check.py
6 7 8 9 10 11 12
    dependencies: []
    artifacts:
        name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-cppcheck-xml"
        expire_in: 2 days
        when: always
        paths:
            - morefem-cppcheck.xml
13
    only:
14
        - develop@MoReFEM/CoreLibrary/MoReFEM
15
        - /(sonarqube)/
16
        - /(full_ci_analysis)/
17 18


19 20
rats:
    stage: analysis
21
    image: registry.gitlab.inria.fr/morefem/analysistools/rats:latest
22
    script:
23
        - python Scripts/CI/RATS/run_rats.py
24 25 26 27 28 29 30
    dependencies: []    
    artifacts:
        name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-rats-xml"
        expire_in: 2 days
        when: always
        paths:
            - morefem-rats.xml
31
    only:
32
        - develop@MoReFEM/CoreLibrary/MoReFEM
33
        - /(sonarqube)/
34
        - /(full_ci_analysis)/
35 36


37 38 39 40
clang-static-analysis:
    stage: analysis
    image: registry.gitlab.inria.fr/morefem/analysistools/clang-sa:latest
    script:
41
        - python Scripts/CI/ClangStaticAnalyser/run_clang_static_analyser.py
42 43 44 45 46 47
    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
48
    only:
49
        - develop@MoReFEM/CoreLibrary/MoReFEM
50
        - /(sonarqube)/
51
        - /(full_ci_analysis)/
52 53


54
sonarqube:
55
    stage: generate_sonarqube
56 57
    dependencies:
        - rats
58 59
        - clang-static-analysis
        - cppcheck
60 61
    image: registry.gitlab.inria.fr/morefem/analysistools/sonarqube:latest    
    script:
62
        - Scripts/CI/Sonarqube/run_sonarqube.sh
63 64 65 66 67
    artifacts:
        name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-sonarqube"
        expire_in: 1 week
        when: always
        paths:
68
            - morefem-cppcheck.xml
69
            - morefem-rats.xml
70
            - morefem-build.log
71
            - sonar.log
72
    only:
73
        - develop@MoReFEM/CoreLibrary/MoReFEM
74
        - /(sonarqube)/
75
        - /(full_ci_analysis)/
76
    
77 78