.gitlab-ci.yml 1.46 KB
Newer Older
niklas.baumgarten's avatar
niklas.baumgarten committed
1
stages:
niklas.baumgarten's avatar
niklas.baumgarten committed
2 3 4 5 6 7
  - build
  - test

build-mpp:
  stage: build

niklas.baumgarten's avatar
niklas.baumgarten committed
8 9 10
  only:
    - branches

niklas.baumgarten's avatar
niklas.baumgarten committed
11 12 13 14 15 16 17 18
  variables:
    GIT_SUBMODULE_STRATEGY: recursive

  before_script:
    - module add foss
    - module add Anaconda3

  script:
niklas.baumgarten's avatar
niklas.baumgarten committed
19 20 21 22 23
    - tar xjf sprng5.tar.bz2
    - cd sprng5
    - ./configure --with-mpi=yes --with-fortran=no
    - make -j
    - cd ..
niklas.baumgarten's avatar
niklas.baumgarten committed
24 25 26 27 28
    - mkdir build
    - cd build
    - cmake ..
    - make -j

niklas.baumgarten's avatar
niklas.baumgarten committed
29 30 31 32 33 34 35 36 37 38
  artifacts:
    paths:
      - build/src
      - build/LIB_PS
      - build/googletest
    expire_in: '1h'

  cache:
    paths:
      - sprng5
niklas.baumgarten's avatar
niklas.baumgarten committed
39

40
program-test:
niklas.baumgarten's avatar
niklas.baumgarten committed
41 42
  stage: test

43 44 45
  only:
    - branches

niklas.baumgarten's avatar
niklas.baumgarten committed
46 47 48 49 50
  before_script:
    - module add foss
    - module add Anaconda3

  script:
niklas.baumgarten's avatar
niklas.baumgarten committed
51 52
    - cd tests
    - mpirun -n 4 TestMainProgram
53 54
    - mpirun -n 4 TestMultilevelPlotter

niklas.baumgarten's avatar
niklas.baumgarten committed
55

niklas.baumgarten's avatar
niklas.baumgarten committed
56 57 58 59 60 61 62 63 64 65


# Part for downstream pipeline
#downstream-build:
#  stage: build
#
#  script:
#    - ls


66 67 68 69
downstream-test:
  stage: test

  only:
niklas.baumgarten's avatar
niklas.baumgarten committed
70
    - pipelines
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89

  before_script:
    - module add foss
    - module add Anaconda3
    - tar xjf sprng5.tar.bz2
    - cd sprng5
    - ./configure --with-mpi=yes --with-fortran=no
    - make -j
    - cd ..
    - cd mpp
    - git fetch
    - git pull origin feature
    - cd ..
    - mkdir build
    - cd build
    - cmake ..
    - make -j

  script:
niklas.baumgarten's avatar
niklas.baumgarten committed
90 91 92 93 94 95
    - "curl -SL
     https://git.scc.kit.edu/mpp/mpp/-/jobs/artifacts/feature/download?job=build-mpp"
    - unzip build.zip
    - cd build
    - cmake ..
    - make -j
96 97
    - cd tests
    - mpirun -n 4 TestMainProgram
98
    - mpirun -n 4 TestMultilevelPlotter
niklas.baumgarten's avatar
niklas.baumgarten committed
99 100