.gitlab-ci.yml 1004 Bytes
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 8 9 10 11 12 13 14 15
  stage: build

  variables:
    GIT_SUBMODULE_STRATEGY: recursive

  before_script:
    - module add foss
    - module add Anaconda3

  script:
niklas.baumgarten's avatar
niklas.baumgarten committed
16
    - echo "Using mpp commit " ${UPSTREAM_COMMIT}
niklas.baumgarten's avatar
niklas.baumgarten committed
17 18 19 20 21
    - tar xjf sprng5.tar.bz2
    - cd sprng5
    - ./configure --with-mpi=yes --with-fortran=no
    - make -j
    - cd ..
niklas.baumgarten's avatar
niklas.baumgarten committed
22

niklas.baumgarten's avatar
niklas.baumgarten committed
23 24 25
    - cd mpp
    - git fetch --all
    - git checkout $UPSTREAM_COMMIT
niklas.baumgarten's avatar
niklas.baumgarten committed
26
    - cd ..
27 28
    - mkdir build
    - cd build
niklas.baumgarten's avatar
niklas.baumgarten committed
29
    - cmake .. -DBUILD_MLMC_TESTS=OFF
niklas.baumgarten's avatar
niklas.baumgarten committed
30
    - make -j
niklas.baumgarten's avatar
niklas.baumgarten committed
31 32 33 34 35 36 37 38

  artifacts:
    paths:
      - build/mpp/src
      - build/mpp/LIB_PS
      - build/mpp/googletest
      - build/mlmc
      - sprng5
niklas.baumgarten's avatar
niklas.baumgarten committed
39
    expire_in: '1h'
niklas.baumgarten's avatar
niklas.baumgarten committed
40

niklas.baumgarten's avatar
niklas.baumgarten committed
41
test-mlmc:
42 43
  stage: test

niklas.baumgarten's avatar
niklas.baumgarten committed
44 45 46 47
  before_script:
    - module add foss
    - module add Anaconda3

48
  script:
niklas.baumgarten's avatar
niklas.baumgarten committed
49 50 51
    - cd build
    - cmake ..
    - make -j
52 53
    - cd tests
    - mpirun -n 4 TestMainProgram
54
    - mpirun -n 4 TestMultilevelPlotter
niklas.baumgarten's avatar
niklas.baumgarten committed
55
    - touch dummy_results.txt
niklas.baumgarten's avatar
niklas.baumgarten committed
56

niklas.baumgarten's avatar
niklas.baumgarten committed
57 58 59
  artifacts:
    paths:
      - build/dummy_results.txt