From 5cb99e4d9dde3a27b4a196ca7ed3427fa3c20759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de> Date: Wed, 25 Oct 2023 13:36:53 +0200 Subject: [PATCH] Adding another test case building icon from a specific hash --- .gitlab-ci.yml | 16 ++++++++++++++++ examples/01_real-from-ideal+hash.sh | 22 ++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100755 examples/01_real-from-ideal+hash.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fc61f98..6d69d1d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -70,6 +70,22 @@ real-from-ideal-psp: - ./autosubmit/**/tmp expire_in: 7 days +real-from-ideal-hash: + stage: run_tests + script: + - ./examples/01_real-from-ideal+hash.sh + tags: + - slurm.meteo.physik.lmu.de + variables: + SRUN_OPTIONS: "--time 04:00:00 --mem 18G -n 4 -c 2" + + artifacts: + name: real-from-ideal+hash-logs + when: always + paths: + - ./autosubmit/**/tmp + expire_in: 7 days + real-from-dwd-ana: stage: run_tests script: diff --git a/examples/01_real-from-ideal+hash.sh b/examples/01_real-from-ideal+hash.sh new file mode 100755 index 0000000..67912c8 --- /dev/null +++ b/examples/01_real-from-ideal+hash.sh @@ -0,0 +1,22 @@ +#!/bin/bash +####################################################################################################################### +# Variables that are required to define the test case +EXPID="rfihash" +ICON_CASE="real-from-ideal" +# That points to a specific hash in the psp branch. +ICON_VERSION="68f2b0564c03473c4ddc8eec651298133714b728" +PLATFORM="LOCAL" +EXTRA_NAMELIST="" +EXTRA_CONFIGURATION="" + +####################################################################################################################### +set -euo pipefail + +# Get path to the script directory +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" + +# Import the function run_autoicon_example +source ${SCRIPT_DIR}/example_utils.sh + +# Setup and run the experiment +run_autoicon_example "$EXPID" "$ICON_CASE" "$ICON_VERSION" "$PLATFORM" "${EXTRA_NAMELIST}" "${EXTRA_CONFIGURATION}" -- GitLab