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

niklas.baumgarten's avatar
niklas.baumgarten committed
5
build-mlmc:
niklas.baumgarten's avatar
niklas.baumgarten committed
6 7
  stage: build

niklas.baumgarten's avatar
niklas.baumgarten committed
8 9 10
  except:
    variables:
      - $CI_PIPELINE_SOURCE == "pipeline"
niklas.baumgarten's avatar
niklas.baumgarten committed
11

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

  before_script:
    - module add foss
    - module add Anaconda3

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

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

niklas.baumgarten's avatar
niklas.baumgarten committed
39 40 41 42
downstream-build-mlmc:
  stage: build

  only:
43 44
    variables:
      - $CI_PIPELINE_SOURCE == "pipeline"
niklas.baumgarten's avatar
niklas.baumgarten committed
45 46 47 48 49 50 51 52 53 54 55 56 57 58

  variables:
    GIT_SUBMODULE_STRATEGY: recursive

  before_script:
    - module add foss
    - module add Anaconda3

  script:
    - tar xjf sprng5.tar.bz2
    - cd sprng5
    - ./configure --with-mpi=yes --with-fortran=no
    - make -j
    - cd ..
59 60
    - mkdir build
    - cd build
niklas.baumgarten's avatar
niklas.baumgarten committed
61 62 63 64
    - "curl -SL
         https://git.scc.kit.edu/mpp/mpp/-/jobs/artifacts/feature/download?job=build-mpp"
    - unzip build.zip
    - ls
niklas.baumgarten's avatar
niklas.baumgarten committed
65 66 67 68 69 70 71 72 73 74 75 76 77

  artifacts:
    paths:
      - build/mpp/src
      - build/mpp/LIB_PS
      - build/mpp/googletest
      - build/mlmc
    expire_in: '1h'

  cache:
    paths:
      - sprng5

78
program-test:
niklas.baumgarten's avatar
niklas.baumgarten committed
79 80
  stage: test

niklas.baumgarten's avatar
niklas.baumgarten committed
81 82 83
  except:
    variables:
      - $CI_PIPELINE_SOURCE == "pipeline"
84

niklas.baumgarten's avatar
niklas.baumgarten committed
85 86 87 88 89
  before_script:
    - module add foss
    - module add Anaconda3

  script:
niklas.baumgarten's avatar
niklas.baumgarten committed
90 91 92
    - cd build
    - cmake ..
    - make -j
niklas.baumgarten's avatar
niklas.baumgarten committed
93 94
    - cd tests
    - mpirun -n 4 TestMainProgram
95 96
    - mpirun -n 4 TestMultilevelPlotter

niklas.baumgarten's avatar
niklas.baumgarten committed
97
downstream-program-test:
98 99 100
  stage: test

  only:
niklas.baumgarten's avatar
niklas.baumgarten committed
101 102
    variables:
      - $CI_PIPELINE_SOURCE == "pipeline"
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121

  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
122 123 124
    - cd build
    - cmake ..
    - make -j
125 126
    - cd tests
    - mpirun -n 4 TestMainProgram
127
    - mpirun -n 4 TestMultilevelPlotter
niklas.baumgarten's avatar
niklas.baumgarten committed
128 129