stages: - build - test build-mlmc: stage: build variables: GIT_SUBMODULE_STRATEGY: recursive before_script: - module add foss - module add Anaconda3 script: - if [ -z "$UPSTREAM_COMMIT" ]; then - echo "Using referenced mpp commit" - else - echo ${UPSTREAM_COMMIT} - fi - tar xjf sprng5.tar.bz2 - cd sprng5 - ./configure --with-mpi=yes --with-fortran=no - make -j - cd .. - cd mpp - git fetch --all - git checkout $UPSTREAM_COMMIT - cd .. - mkdir build - cd build - cmake .. -DBUILD_MLMC_TESTS=OFF - make -j artifacts: paths: - build/mpp/src - build/mpp/LIB_PS - build/mpp/googletest - build/mlmc - sprng5 expire_in: '1h' test-mlmc: stage: test before_script: - module add foss - module add Anaconda3 script: - cd build - cmake .. - make -j - cd tests - mpirun -n 4 TestMainProgram - mpirun -n 4 TestMultilevelPlotter - touch dummy_results.txt artifacts: paths: - build/dummy_results.txt