analysis.yml 2.39 KB
Newer Older
DIAZ Jerome's avatar
DIAZ Jerome committed
1
valgrind:
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  stage: analysis
  image: registry.gitlab.inria.fr/morefem/analysistools/valgrind:latest
  script:
      - python Scripts/Tools/run_valgrind.py
  dependencies: []
  artifacts:
      name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-valgrind"
      expire_in: 2 days
      when: always
#      paths:
#          - morefem-valgrind.xml
#  only:
#      - develop@morefem/corelibrary/morefem
#      - /(sonarqube)/


18
19
20
21
22
23
24
25
26
27
28
29
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
30
31
32
    only:
        - develop@morefem/corelibrary/morefem
        - /(sonarqube)/
33
34


35
36
rats:
    stage: analysis
37
    image: registry.gitlab.inria.fr/morefem/analysistools/rats:latest
38
    script:
39
        - python Scripts/Tools/run_rats.py
40
41
42
43
44
45
46
    dependencies: []    
    artifacts:
        name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-rats-xml"
        expire_in: 2 days
        when: always
        paths:
            - morefem-rats.xml
47
48
49
    only:
        - develop@morefem/corelibrary/morefem
        - /(sonarqube)/
50
51


52
53
54
55
56
57
58
59
60
61
62
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
63
64
65
    only:
        - develop@morefem/corelibrary/morefem
        - /(sonarqube)/
66
67


68
sonarqube:
69
    stage: generate_sonarqube
70
71
    dependencies:
        - rats
72
73
        - clang-static-analysis
        - cppcheck
74
75
    image: registry.gitlab.inria.fr/morefem/analysistools/sonarqube:latest    
    script:
76
        - Scripts/Tools/run_sonarqube.sh
77
78
79
80
81
    artifacts:
        name: "artifact_${CI_PROJECT_ID}_${CI_COMMIT_REF_SLUG}_${OS}-sonarqube"
        expire_in: 1 week
        when: always
        paths:
82
            - morefem-cppcheck.xml
83
            - morefem-rats.xml
84
            - morefem-build.log
85
            - sonar.log
86
87
    only:
        - develop@morefem/corelibrary/morefem
88
        - /(sonarqube)/
89
    
90
91