analysis.yml 3.16 KB
Newer Older
DIAZ Jerome's avatar
DIAZ Jerome committed
1
valgrind:
2
3
4
  stage: analysis
  image: registry.gitlab.inria.fr/morefem/analysistools/valgrind:latest
  script:
5
      - which valgrind
6
7
8
9
      - mkdir -p build_4_valgrind
      - cd build_4_valgrind && python ../cmake/Scripts/configure_cmake.py --cache_file=../cmake/PreCache/linux.cmake --cmake_args="-G Ninja"  --third_party_directory=/opt --mode="debug"
      - ninja
      - valgrind --error-exitcode=1 --log-file=memcheck_matrix_operations.txt --gen-suppressions=all --show-leak-kinds=all --show-reachable=yes --track-origins=yes --leak-check=full --suppressions=${HOME}/Codes/MoReFEM/CoreLibrary/ExternalTools/Valgrind/openmpi.suppr --suppressions=${HOME}/Codes/MoReFEM/CoreLibrary/ExternalTools/Valgrind/libgomp.suppr --suppressions=${HOME}/Codes/MoReFEM/CoreLibrary/ExternalTools/Valgrind/libc.suppr Sources/MoReFEMTestPetscMatrixOperations -i ${HOME}/Codes/MoReFEM/CoreLibrary/Sources/Test/ThirdParty/PETSc/MatrixOperations/demo.lua
10
11
12
13
14
15
16
17
18
19
20
21
  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)/


22
23
24
25
26
27
28
29
30
31
32
33
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
34
35
36
    only:
        - develop@morefem/corelibrary/morefem
        - /(sonarqube)/
37
38


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


56
57
58
59
60
61
62
63
64
65
66
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
67
68
69
    only:
        - develop@morefem/corelibrary/morefem
        - /(sonarqube)/
70
71


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