.gitlab-ci.yml 3.32 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
    name: starpu_build
PRUVOST Florent's avatar
PRUVOST Florent committed
12
    expire_in: 48 hours
13 14
    paths:
      - build
PRUVOST Florent's avatar
PRUVOST Florent committed
15
      - chameleon-build.log
16
  script:
17 18 19
    - source .gitlab-ci-env.sh
    - git submodule update --init --recursive
    - mkdir -p build
20
    - cd build
21
    - 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
22
    - make | tee ../chameleon-build.log
23
    - make install | tee -a ../chameleon-build.log
24

PRUVOST Florent's avatar
PRUVOST Florent committed
25 26 27 28
build_quark:
  stage: build
  artifacts:
    name: quark_build
PRUVOST Florent's avatar
PRUVOST Florent committed
29
    expire_in: 48 hours
PRUVOST Florent's avatar
PRUVOST Florent committed
30 31 32 33 34 35 36 37 38 39 40 41
    paths:
      - build
      - chameleon-build.log
  script:
    - source .gitlab-ci-env.sh
    - git submodule update --init --recursive
    - mkdir -p build
    - cd build
    - cmake .. -DCMAKE_INSTALL_PREFIX=${PWD}/install -DCMAKE_VERBOSE_MAKEFILE=ON -DMORSE_ENABLE_WARNING=ON -DMORSE_ENABLE_COVERAGE=ON -DCHAMELEON_SCHED_QUARK=ON
    - make | tee ../chameleon-build.log
    - make install | tee -a ../chameleon-build.log

42 43 44 45
test_starpu:
  stage: test
  dependencies:
    - build_starpu
PRUVOST Florent's avatar
PRUVOST Florent committed
46
  artifacts:
47
    name: starpu_test
PRUVOST Florent's avatar
PRUVOST Florent committed
48
    expire_in: 48 hours
PRUVOST Florent's avatar
PRUVOST Florent committed
49
    paths:
PRUVOST Florent's avatar
PRUVOST Florent committed
50
      - coverage_starpu.tar.bz2
51 52 53
  script:
    - source .gitlab-ci-env.sh
    - git submodule update --init --recursive
54
    - (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)
PRUVOST Florent's avatar
PRUVOST Florent committed
55 56 57 58 59 60 61 62
    - find -name "*.gcda" | xargs tar cvjf coverage_starpu.tar.bz2

test_quark:
  stage: test
  dependencies:
    - build_quark
  artifacts:
    name: starpu_test
PRUVOST Florent's avatar
PRUVOST Florent committed
63
    expire_in: 48 hours
PRUVOST Florent's avatar
PRUVOST Florent committed
64 65 66 67 68 69 70
    paths:
      - coverage_quark.tar.bz2
  script:
    - source .gitlab-ci-env.sh
    - git submodule update --init --recursive
    - (cd build && ctest --no-compress-output -R test_shm_s)
    - find -name "*.gcda" | xargs tar cvjf coverage_quark.tar.bz2
PRUVOST Florent's avatar
PRUVOST Florent committed
71

72 73 74 75
sonar:
  stage: analysis
  dependencies:
    - build_starpu
PRUVOST Florent's avatar
PRUVOST Florent committed
76
    - build_quark
77
    - test_starpu
PRUVOST Florent's avatar
PRUVOST Florent committed
78
    - test_quark
PRUVOST Florent's avatar
PRUVOST Florent committed
79 80 81 82 83 84 85 86 87 88 89
  artifacts:
    name: chameleon_analysis
    expire_in: 1 week
    paths:
      - chameleon-build.log
      - chameleon-coverage.xml
      - chameleon-cppcheck.xml
      - chameleon-rats.xml
      - sonar.log
  script:
    - source .gitlab-ci-env.sh
PRUVOST Florent's avatar
PRUVOST Florent committed
90 91
    - tar xvjf coverage_starpu.tar.bz2
    - tar xvjf coverage_quark.tar.bz2
PRUVOST Florent's avatar
PRUVOST Florent committed
92
    - ./tools/analysis.sh
93
  only:
94
    - master
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
    - 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