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

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

8 9
build:
  stage: build
10
  script:
11 12 13
    - cd Build && cmake ..
        -DSCALFMM_USE_LOG=ON
        -DSCALFMM_USE_ASSERT=ON
14
        -DSCALFMM_USE_SSE=OFF
15 16 17 18 19 20 21
        -DSCALFMM_USE_BLAS=ON
        -DSCALFMM_USE_FFT=ON
        -DSCALFMM_USE_MPI=ON
        -DSCALFMM_BUILD_EXAMPLES=ON
        -DSCALFMM_BUILD_TESTS=OFF
        -DSCALFMM_BUILD_UTESTS=OFF
        -DCMAKE_VERBOSE_MAKEFILE=ON
22 23
        -DCMAKE_C_COMPILER=gcc-6
        -DCMAKE_CXX_COMPILER=g++-6
24 25 26 27 28 29 30 31 32 33 34 35 36 37
    - make -j8

test:
  stage: test
  artifacts:
    name: scalfmm_test
    expire_in: 1 day
    paths:
      - scalfmm-build.log
      - scalfmm.lcov
      - scalfmm-coverage.xml
      #- scalfmm-cppcheck.xml
      - scalfmm-rats.xml
  script:
38
    - source ./Utils/scripts/analysis.sh
39 40 41 42 43 44 45 46 47 48 49

sonar:
  stage: sonar
  dependencies:
  - test
  artifacts:
    name: scalfmm_sonar
    expire_in: 1 day
    paths:
      - sonar.log
  script:
50
    - sonar-scanner -X -Dsonar.login=c1416c617418f890576a747223ac9f6cd86353d6 > sonar.log
51 52
  only:
    - devel