Skip to content

Commit

Permalink
#2786: add basic skeleton of install_cold task
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-tgeddes authored and Katherine Tomkins committed Sep 8, 2022
1 parent 8048310 commit 680f5f1
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
set -eux

# Remove source directory, if it exists.
if [[ -d ${SOURCE_DIR} ]]; then
rm -rf "${SOURCE_DIR}"
fi

# Checkout uthpy.
git clone -b "${BRANCH}" "${URL}" "${SOURCE_DIR}"

# Install uthpy.
cd "${SOURCE_DIR}"
pip install . --prefix="${UTH_INSTALL_ROOT}"
Empty file.
18 changes: 18 additions & 0 deletions esmvaltool/utils/recipe_run_workflow/recipe_run_workflow/flow.cylc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[scheduler]
allow implicit tasks = True
[scheduling]
[[graph]]
R1 = install_cold

[runtime]
[[root]]
script = rose task-run
env-script = "eval $(rose task-env)"
[[[environment]]]
MODULE_NAME = {{ MODULE_NAME }}
USER_CONFIG_DIR = ${CYLC_WORKFLOW_RUN_DIR}/etc
USER_CONFIG_PATH = ${USER_CONFIG_DIR}/config-user.yml
RRW_INSTALL_ROOT = ${CYLC_WORKFLOW_RUN_DIR}

[[install_cold]]
platform = localhost

0 comments on commit 680f5f1

Please sign in to comment.