.gitlab-ci.yml 960 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
    - cmake .. -DBUILD_MLMC_TESTS=OFF
niklas.baumgarten's avatar
niklas.baumgarten committed
29
    - 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
  stage: test

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

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

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