.gitlab-ci.yml 893 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 17 18 19 20
    - tar xjf sprng5.tar.bz2
    - cd sprng5
    - ./configure --with-mpi=yes --with-fortran=no
    - make -j
    - cd ..
niklas.baumgarten's avatar
niklas.baumgarten committed
21

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

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

niklas.baumgarten's avatar
niklas.baumgarten committed
40
test-mlmc:
41 42 43 44 45 46 47 48 49
  stage: test

  before_script:
    - module add foss
    - module add Anaconda3

  script:
    - cd tests
    - mpirun -n 4 TestMainProgram
50
    - mpirun -n 4 TestMultilevelPlotter
niklas.baumgarten's avatar
niklas.baumgarten committed
51
    - touch build/dummy_results.txt
niklas.baumgarten's avatar
niklas.baumgarten committed
52

niklas.baumgarten's avatar
niklas.baumgarten committed
53 54 55
  artifacts:
    paths:
      - build/dummy_results.txt