stages: - build - test cache: paths: - sprng5 before_script: - module add foss - module add Anaconda3 - if [ -z "$(ls sprng5/)" ]; then - tar xjf sprng5.tar.bz2 - cd sprng5 - ./configure --with-mpi=yes --with-fortran=no - make -j - cd .. - else - echo "Using sprng5 from cache" - fi build-mlmc: stage: build variables: GIT_SUBMODULE_STRATEGY: recursive script: - if [ -z "$UPSTREAM_COMMIT" ]; then - echo "Using referenced mpp commit" - else - echo ${UPSTREAM_COMMIT} - fi - 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 expire_in: '1h' test-mlmc: stage: test 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