From 520349629a30afdf29913ce1c26de93fc8e62335 Mon Sep 17 00:00:00 2001 From: Sven Marcus <s.marcus@outlook.de> Date: Tue, 13 Apr 2021 15:27:58 +0200 Subject: [PATCH] Add slurm test for gitlab ci --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aadca8fd7..2fb8625a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -236,6 +236,37 @@ gcc_9_python_bindings_test: script: - python3 -m unittest discover -s Python -v +############################################################################### +gcc_9_python_slurm_test: + extends: .deploy_template + stage: test + + when: manual + + tags: + - linux + - privileged + + variables: + SSH_KEY: "$SSH_PRIVATE_KEY" + HOST: "phoenix.hlr.rz.tu-bs.de" + PHOENIX_USER: "y0054816" + + script: + - singularity build PoiseuilleTestContainer.sif Python/SlurmTests/poiseuille/PoiseuilleTestContainer.def + - scp PoiseuilleTestContainer.sif $PHOENIX_USER@$HOST:PoiseuilleTestContainer.sif + - scp Python/SlurmTests/poiseuille/slurm.job $PHOENIX_USER@$HOST:slurm.job + - ssh $PHOENIX_USER@$HOST "rm -rf output-*" + - ssh $PHOENIX_USER@$HOST "rm *.out" + - ssh $PHOENIX_USER@$HOST "sbatch --wait slurm.job" + - cat *.out + + after_script: + - ssh $PHOENIX_USER@$HOST "rm -rf output-*" + - ssh $PHOENIX_USER@$HOST "rm *.out" + - ssh $PHOENIX_USER@$HOST "rm PoiseuilleTestContainer.sif" + - ssh $PHOENIX_USER@$HOST "rm slurm.job" + ############################################################################### ## Benchmark ## ############################################################################### -- GitLab