Something went wrong on our end
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
.gitlab-ci.yml 10.32 KiB
variables:
# NOTE, MAKE SURE ANY PIPELINE-LEVEL VARIABLES ARE UNIQUE TO THIS PIPELINE
# WHEN CALLED FROM A MULTI-PIPELINE TRIGGER, VARIABLES WITH SHARED NAMES WILL BE OVERWRITTEN
OUTPUT_DIR: "$CI_PROJECT_DIR/outputs/"
# OUTPUT_DIR: "/storage/app/EWS_prod/regions/EastAfrica/workspace/"
TEST_WORKSPACE_DIR: "/storage/app/EWS_prod/regions/EastAfrica/test_workspace/"
FULL_FAT_RUN_DATE:
value: "default"
options:
- "default"
- "today"
- "yesterday"
- "custom"
description: "Full-fat tests will pull data from the deployment environment. For robustness, the default option is a
pre-selected date we know works. Select \"today\" or \"yesterday\" to test with recent live data. If \"custom\" is
selected, manually enter the key value pair using the format in this example: CUSTOM_RUN_DATE 20230115"
CUSTOM_RUN_DATE: "NOT_SET"
FULL_FAT_COPY_OUTPUT:
value: "false"
options:
- "true"
- "false"
description: "Select \"true\" to make a copy of the full-fat integration test output. Outputs will be copied to the
production machine at /storage/app/EWS_prod/regions/EastAfrica/test_workspace"
cache:
paths:
- .cache/pip
- venv/
stages:
- docs
- half-fat
- full-fat
.before_script:
before_script:
- BRANCH="lb584_27_11_23"
- echo "branch - " $BRANCH
- PACKAGES_DIR="$CI_PROJECT_DIR/packages/"
- echo "project dir - " $CI_PROJECT_DIR
- echo "output dir - " $OUTPUT_DIR
- echo "packages dir - " $PACKAGES_DIR
- echo "pip dir - " $PIP_CACHE_DIR
- echo "full-fat run date - " $FULL_FAT_RUN_DATE
- echo "custom full-fat run date - " $CUSTOM_RUN_DATE
- echo "full-fat copy output - " $FULL_FAT_COPY_OUTPUT
- source /storage/app/EWS_prod/envs/venv/ews_prod/bin/activate
- pip install coverage
- python3 -V # Print out python version for debugging
- mkdir -p $PACKAGES_DIR
- mkdir -p $OUTPUT_DIR
- git clone -b main "https://nouser:$GROUP_WHEAT_ACCESS_VAR@gitlab.developers.cam.ac.uk/gilligan-epid/wheat-rusts/ews-source-generation.git" $PACKAGES_DIR/source_gen
- git clone -b $BRANCH "https://nouser:$GROUP_WHEAT_ACCESS_VAR@gitlab.developers.cam.ac.uk/gilligan-epid/wheat-rusts/ews_plotting.git" $PACKAGES_DIR/plotting
- git clone -b main "https://nouser:$GROUP_WHEAT_ACCESS_VAR@gitlab.developers.cam.ac.uk/gilligan-epid/wheat-rusts/flagdir.git" $PACKAGES_DIR/flagdir
- git clone -b main "https://nouser:$GROUP_WHEAT_ACCESS_VAR@gitlab.developers.cam.ac.uk/gilligan-epid/wheat-rusts/ews-epimodel.git" $PACKAGES_DIR/epimodel
- git clone -b main "https://nouser:$GROUP_WHEAT_ACCESS_VAR@gitlab.developers.cam.ac.uk/gilligan-epid/wheat-rusts/ews-advisory-builder.git" $PACKAGES_DIR/advisory_builder
- git clone -b main "https://nouser:$GROUP_WHEAT_ACCESS_VAR@gitlab.developers.cam.ac.uk/gilligan-epid/wheat-rusts/ews_environmental_suitability_v2.git" $PACKAGES_DIR/environmental_suitability
- git clone -b $BRANCH "https://nouser:$GROUP_WHEAT_ACCESS_VAR@gitlab.developers.cam.ac.uk/gilligan-epid/wheat-rusts/ews-postprocessing.git" $PACKAGES_DIR/post_processing
- git clone -b $BRANCH "https://nouser:$GROUP_WHEAT_ACCESS_VAR@gitlab.developers.cam.ac.uk/gilligan-epid/wheat-rusts/ews-met-processing.git" $PACKAGES_DIR/met_processing
- flagdir=$PACKAGES_DIR/flagdir
- epimodel=$PACKAGES_DIR/epimodel
- advisory=$PACKAGES_DIR/advisory_builder
- met_processing=$PACKAGES_DIR/met_processing