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

3 4 5
stages:
  - build
  - test
6

7 8
build:
  stage: build
9
  script:
10 11 12
    - cd Build && cmake ..
        -DSCALFMM_USE_LOG=ON
        -DSCALFMM_USE_ASSERT=ON
13
        -DSCALFMM_USE_SSE=OFF
14 15 16 17 18 19 20
        -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
21 22
        -DCMAKE_C_COMPILER=gcc-6
        -DCMAKE_CXX_COMPILER=g++-6
23 24 25 26 27 28 29 30 31 32 33
    - make -j8

test:
  stage: test
  artifacts:
    name: scalfmm_test
    expire_in: 1 day
    paths:
      - scalfmm-build.log
      - scalfmm.lcov
      - scalfmm-coverage.xml
34
      #- scalfmm-cppcheck.xml
35
      - scalfmm-rats.xml
36
      - sonar-project.properties
37
  script:
38
    - source ./Utils/scripts/analysis.sh
39 40 41
    - if [[ $CI_REPOSITORY_URL = *"solverstack/ScalFMM"* ]] && [[ $CI_COMMIT_REF_NAME = *"develop"* ]]; then
        sonar-scanner -X -Dsonar.login=7555e3ab0432d5402409aafd3800f99d300215a4 > sonar.log;
      fi