.gitlab-ci.yml 2.35 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
18
    - source .gitlab-ci-env.sh
    - git submodule update --init --recursive
    - mkdir -p build
19
    - cd build
20
    - cmake .. -DCHAMELEON_USE_MPI=ON -DCMAKE_INSTALL_PREFIX=${PWD}/install -DCMAKE_VERBOSE_MAKEFILE=ON -DMORSE_ENABLE_WARNING=ON -DMORSE_ENABLE_COVERAGE=ON
PRUVOST Florent's avatar
PRUVOST Florent committed
21
    - make | tee ../chameleon-build.log
22
    - make install | tee -a ../chameleon-build.log
23

24
25
26
27
test_starpu:
  stage: test
  dependencies:
    - build_starpu
PRUVOST Florent's avatar
PRUVOST Florent committed
28
  artifacts:
29
30
    name: starpu_test
    expire_in: 42 minutes
PRUVOST Florent's avatar
PRUVOST Florent committed
31
    paths:
PRUVOST Florent's avatar
PRUVOST Florent committed
32
      - coverage.tar.bz2
33
34
35
  script:
    - source .gitlab-ci-env.sh
    - git submodule update --init --recursive
36
37
    - (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
38

39
40
41
42
43
sonar:
  stage: analysis
  dependencies:
    - build_starpu
    - test_starpu
PRUVOST Florent's avatar
PRUVOST Florent committed
44
45
46
47
48
49
50
51
52
53
54
55
  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
56
    - tar xvjf coverage.tar.bz2
PRUVOST Florent's avatar
PRUVOST Florent committed
57
    - ./tools/analysis.sh
58
  only:
59
    - master
60
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
    - 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