.gitlab-ci.yml 1.95 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
  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
    - mkdir build
    - cd build
niklas.baumgarten's avatar
niklas.baumgarten committed
26
    - cmake .. #-DBUILD_TESTS=OFF
niklas.baumgarten's avatar
niklas.baumgarten committed
27 28
    - make -j

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

niklas.baumgarten's avatar
niklas.baumgarten committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
downstream-build-mlmc:
  stage: build

  only:
    - triggers

  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 ..
niklas.baumgarten's avatar
niklas.baumgarten committed
57 58 59 60
    - "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
61 62 63 64 65 66 67 68 69 70 71 72 73

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

  cache:
    paths:
      - sprng5

74
program-test:
niklas.baumgarten's avatar
niklas.baumgarten committed
75 76
  stage: test

77 78 79
  only:
    - branches

niklas.baumgarten's avatar
niklas.baumgarten committed
80 81 82 83 84
  before_script:
    - module add foss
    - module add Anaconda3

  script:
niklas.baumgarten's avatar
niklas.baumgarten committed
85 86 87
    - cd build
    - cmake ..
    - make -j
niklas.baumgarten's avatar
niklas.baumgarten committed
88 89
    - cd tests
    - mpirun -n 4 TestMainProgram
90 91
    - mpirun -n 4 TestMultilevelPlotter

niklas.baumgarten's avatar
niklas.baumgarten committed
92
downstream-program-test:
93 94 95
  stage: test

  only:
niklas.baumgarten's avatar
niklas.baumgarten committed
96 97
    - triggers

98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116

  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
117 118 119
    - cd build
    - cmake ..
    - make -j
120 121
    - cd tests
    - mpirun -n 4 TestMainProgram
122
    - mpirun -n 4 TestMultilevelPlotter
niklas.baumgarten's avatar
niklas.baumgarten committed
123 124