.gitlab-ci.yml 2.48 KB
Newer Older
1
2
image: hpclib/hiepacs

3
4
5
6
stages:
  - build
  - test
  - analysis
7

8
9
build_starpu:
  stage: build
10
  artifacts:
11
12
    name: starpu_build
    expire_in: 42 minutes
13
14
    paths:
      - build
15
  script:
16
17
    - source .gitlab-ci-env.sh
    - git submodule update --init --recursive
18
    - sed -i -e "s#except Exception(e)#except Exception as e#" cmake_modules/morse_cmake/modules/precision_generator/codegen.py
19
    - mkdir -p build
20
    - cd build
21
22
23
    - cmake .. -DCHAMELEON_USE_MPI=ON -DCMAKE_INSTALL_PREFIX=${PWD}/install -DCMAKE_VERBOSE_MAKEFILE=ON -DMORSE_ENABLE_WARNING=ON -DMORSE_ENABLE_COVERAGE=ON
    - make -j5 | tee ../chameleon-build.log
    - make install | tee -a ../chameleon-build.log
24

25
26
27
28
test_starpu:
  stage: test
  dependencies:
    - build_starpu
PRUVOST Florent's avatar
PRUVOST Florent committed
29
  artifacts:
30
31
    name: starpu_test
    expire_in: 42 minutes
PRUVOST Florent's avatar
PRUVOST Florent committed
32
    paths:
33
      - coverage.tar.gz2
34
35
36
  script:
    - source .gitlab-ci-env.sh
    - git submodule update --init --recursive
37
38
    - (cd build && STARPU_SILENT=1 ctest --no-compress-output -R test_shm_s || /usr/bin/true && ctest --no-compress-output -R mpi_s || /usr/bin/true)
    - find -name "*.gcda" | xargs tar cvjf coverage.tar.bz2
PRUVOST Florent's avatar
PRUVOST Florent committed
39

40
41
42
43
44
sonar:
  stage: analysis
  dependencies:
    - build_starpu
    - test_starpu
PRUVOST Florent's avatar
PRUVOST Florent committed
45
46
47
48
49
50
51
52
53
54
55
56
  artifacts:
    name: chameleon_analysis
    expire_in: 1 week
    paths:
      - chameleon-build.log
      - coverage/
      - chameleon-coverage.xml
      - chameleon-cppcheck.xml
      - chameleon-rats.xml
      - sonar.log
  script:
    - source .gitlab-ci-env.sh
57
    - tar xvjf coverage.tar.bz2
PRUVOST Florent's avatar
PRUVOST Florent committed
58
    - ./tools/analysis.sh
59
  only:
60
    - master
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
    - issue53/fix-ci

#starpu-simgrid:
#  stage: buildtest
#  script:
#    - source .gitlab-ci-env.sh simu
#    - git submodule update --init --recursive
#    - mkdir -p build
#    - cd build
#    - cmake .. -DCHAMELEON_SIMULATION=ON -DCHAMELEON_USE_CUDA=ON -DCHAMELEON_USE_MPI=OFF
#    - make -j2
#    - ctest -V
#
#quark:
#  stage: buildtest
#  script:
#    - source .gitlab-ci-env.sh
#    - git submodule update --init --recursive
#    - mkdir -p build
#    - cd build
#    - cmake .. -DCHAMELEON_SCHED_QUARK=ON
#    - make -j2
#    - ctest -V -R test_shm_s

#doc:
#  artifacts:
#    name: chameleon_doc
#    expire_in: 1 week
#    paths:
#      - build/doc/doxygen
#      - build/doc/orgmode
#  script:
#    - source .gitlab-ci-env.sh
#    - git submodule update --init --recursive
#    - mkdir -p build
#    - cd build
#    - cmake .. -DCHAMELEON_ENABLE_DOC=ON -DCHAMELEON_ENABLE_EXAMPLE=OFF -DCHAMELEON_ENABLE_TESTING=OFF -DCHAMELEON_ENABLE_TIMING=OFF
#    - make doc