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

PRUVOST Florent's avatar
PRUVOST Florent committed
3 4 5
variables:
  GIT_SUBMODULE_STRATEGY: normal

6 7 8
stages:
  - build
  - test
9
  - sonar
10

11 12
build:
  stage: build
13 14 15 16 17
  artifacts:
    name: scalfmm_build
    expire_in: 1 day
    paths:
      - Build/
18
  script:
19 20 21
    - cd Build && cmake ..
        -DSCALFMM_USE_LOG=ON
        -DSCALFMM_USE_ASSERT=ON
22
        -DSCALFMM_USE_SSE=OFF
23
        -DSCALFMM_USE_AVX=OFF
24 25 26
        -DSCALFMM_USE_BLAS=ON
        -DSCALFMM_USE_FFT=ON
        -DSCALFMM_USE_MPI=ON
27
        -DSCALFMM_USE_STARPU=ON
28
        -DSCALFMM_BUILD_EXAMPLES=ON
29 30
        -DSCALFMM_BUILD_TESTS=ON
        -DSCALFMM_BUILD_UTESTS=ON
31
        -DCMAKE_VERBOSE_MAKEFILE=ON
32 33
        -DCMAKE_C_COMPILER=gcc-6
        -DCMAKE_CXX_COMPILER=g++-6
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
    - make -j5 2>&1 |tee scalfmm-build.log

doc:
  stage: build
  artifacts:
    name: scalfmm_doc
    expire_in: 1 day
    paths:
      - Build/Doc/html
  script:
    - cd Build && cmake ..
        -DSCALFMM_BUILD_DOC=ON
        -DCMAKE_C_COMPILER=gcc-6
        -DCMAKE_CXX_COMPILER=g++-6
    - make doc
49 50 51

test:
  stage: test
52 53
  dependencies:
    - build
54 55 56
  artifacts:
    name: scalfmm_test
    expire_in: 1 day
57 58 59 60 61 62 63 64 65 66 67 68
    paths:
      - Build/
  script:
    - (cd Build && OMP_NUM_THREADS=4 ctest --no-compress-output -V -j 5 -D ExperimentalBuild -D ExperimentalTest -D ExperimentalCoverage -D ExperimentalSubmit)

sonar:
  stage: sonar
  dependencies:
    - test
  artifacts:
    name: scalfmm_sonar
    expire_in: 1 day
69 70 71
    paths:
      - scalfmm-build.log
      - scalfmm-coverage.xml
COULAUD Olivier's avatar
COULAUD Olivier committed
72
      - scalfmm-cppcheck.xml
73
      - scalfmm-rats.xml
74
      - sonar-project.properties
75
      - sonar.log
76
  script:
77
    - mv Build/scalfmm-build.log .
78
    - source ./Utils/scripts/analysis.sh
79 80 81
    - sonar-scanner |tee sonar.log;
  only:
    - develop@solverstack/ScalFMM