From 55e397e16d8b95a8097a78862681866696616d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de> Date: Wed, 12 Jul 2023 11:14:27 +0200 Subject: [PATCH] Add build-only test. --- .gitlab-ci.yml | 16 ++++++++++++++++ examples/00_build_only.sh | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100755 examples/00_build_only.sh diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c9db163..cb1ceba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,22 @@ clean-spack: - when: never +build-only: + stage: run_tests + script: + - ./examples/00_build_only.sh + tags: + - slurm.meteo.physik.lmu.de + variables: + SRUN_OPTIONS: "--time 04:00:00 --mem 18G -n 4 -c 2" + + artifacts: + name: build-only-logs + when: always + paths: + - ./autosubmit/**/tmp + expire_in: 7 days + real-from-ideal: stage: run_tests diff --git a/examples/00_build_only.sh b/examples/00_build_only.sh new file mode 100755 index 0000000..320ef66 --- /dev/null +++ b/examples/00_build_only.sh @@ -0,0 +1,21 @@ +#!/bin/bash +####################################################################################################################### +# Variables that are required to define the test case +EXPID="bo000" +ICON_CASE="build_only" +ICON_VERSION="2.6.5-nwp0" +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