Skip to content
Snippets Groups Projects
Commit 8eef65b8 authored by Bianca Wentzel's avatar Bianca Wentzel
Browse files

Uncomment prod test

parent 449aa4c6
No related branches found
No related tags found
1 merge request!8Pvap calculation
Pipeline #94725 passed
......@@ -83,38 +83,38 @@ func-test:
paths:
- build/func_test
# prod-test:
# id_tokens:
# SITE_ID_TOKEN:
# aud: https://gitlab.dkrz.de
# tags:
# - levante
# variables:
# SCHEDULER_PARAMETERS: "--account=$ACCOUNT --partition=shared --mem=16G"
# script:
# - module load clint $PROJECT_MODULE
# - source /etc/profile.d/modules.sh
# - module use /sw/spack-levante/spack/modules
# - module load cdo/2.2.2-gcc-11.2.0 nco/5.0.6-gcc-11.2.0
# - export EVALUATION_SYSTEM_PLUGINS=$CI_PROJECT_DIR,pet-wrapper-api
# - freva-plugin --list
# - freva-plugin pet project=nukleus product=ceu-3 institute=clmcom-btu model=ec-earth-consortium-ec-earth3-veg-clmcom-btu-icon-2-6-5-rc-nukleus-x2yn2-v1 experiment=historical ensemble=r1i1p1f1 start_date=1970-01-01 end_date=1971-12-31 region=2,6,46,54 caption="PET production test from CI piepline https://gitlab.dkrz.de/ch1187/plugins4freva/pet/-/jobs/$CI_JOB_ID"-vvv
# - freva-plugin pet project=cmip6 product=cmip institute=awi model=awi-esm-1-recom experiment=esm-hist ensemble=r1i1p1f1 start_date=1900-01-01 end_date=1902-12-31 region=5,15,47,55 caption="PET production test from CI piepline https://gitlab.dkrz.de/ch1187/plugins4freva/pet/-/jobs/$CI_JOB_ID" -vvv
# - mkdir -p build/prod_test
# - REGIKLIM_JOB_ID=$(ls -t /work/$ACCOUNT/regiklim-work/$GITLAB_USER_LOGIN/regiklim-ces/output/pet/ | head -n 1)
# - cd /work/$ACCOUNT/regiklim-work/$GITLAB_USER_LOGIN/regiklim-ces/output/pet/$REGIKLIM_JOB_ID
# - echo "<!DOCTYPE html><html><head>" >> index.html
# - echo "<meta http-equiv=\"refresh\" content=\"0; url=https://www-regiklim.dkrz.de/history/$REGIKLIM_JOB_ID/results/\">" >> index.html
# - echo "<title>Redirecting...</title>" >> index.html
# - echo "</head><body>" >> index.html
# - echo "<p>If you are not redirected, <a href=\"https://www-regiklim.dkrz.de/history/$REGIKLIM_JOB_ID/results/\">click here</a>.</p>" >> index.html
# - echo "</body></html>" >> index.html
# - ls -la
# - cp -r * $CI_PROJECT_DIR/build/prod_test
# artifacts:
# when: always
# paths:
# - build/prod_test
prod-test:
id_tokens:
SITE_ID_TOKEN:
aud: https://gitlab.dkrz.de
tags:
- levante
variables:
SCHEDULER_PARAMETERS: "--account=$ACCOUNT --partition=shared --mem=16G"
script:
- module load clint $PROJECT_MODULE
- source /etc/profile.d/modules.sh
- module use /sw/spack-levante/spack/modules
- module load cdo/2.2.2-gcc-11.2.0 nco/5.0.6-gcc-11.2.0
- export EVALUATION_SYSTEM_PLUGINS=$CI_PROJECT_DIR,pet-wrapper-api
- freva-plugin --list
- freva-plugin pet project=nukleus product=ceu-3 institute=clmcom-btu model=ec-earth-consortium-ec-earth3-veg-clmcom-btu-icon-2-6-5-rc-nukleus-x2yn2-v1 experiment=historical ensemble=r1i1p1f1 start_date=1970-01-01 end_date=1971-12-31 region=2,6,46,54 caption="PET production test from CI piepline https://gitlab.dkrz.de/ch1187/plugins4freva/pet/-/jobs/$CI_JOB_ID"-vvv
- freva-plugin pet project=cmip6 product=cmip institute=awi model=awi-esm-1-recom experiment=esm-hist ensemble=r1i1p1f1 start_date=1900-01-01 end_date=1902-12-31 region=5,15,47,55 caption="PET production test from CI piepline https://gitlab.dkrz.de/ch1187/plugins4freva/pet/-/jobs/$CI_JOB_ID" -vvv
- mkdir -p build/prod_test
- REGIKLIM_JOB_ID=$(ls -t /work/$ACCOUNT/regiklim-work/$GITLAB_USER_LOGIN/regiklim-ces/output/pet/ | head -n 1)
- cd /work/$ACCOUNT/regiklim-work/$GITLAB_USER_LOGIN/regiklim-ces/output/pet/$REGIKLIM_JOB_ID
- echo "<!DOCTYPE html><html><head>" >> index.html
- echo "<meta http-equiv=\"refresh\" content=\"0; url=https://www-regiklim.dkrz.de/history/$REGIKLIM_JOB_ID/results/\">" >> index.html
- echo "<title>Redirecting...</title>" >> index.html
- echo "</head><body>" >> index.html
- echo "<p>If you are not redirected, <a href=\"https://www-regiklim.dkrz.de/history/$REGIKLIM_JOB_ID/results/\">click here</a>.</p>" >> index.html
- echo "</body></html>" >> index.html
- ls -la
- cp -r * $CI_PROJECT_DIR/build/prod_test
artifacts:
when: always
paths:
- build/prod_test
pages:
stage: pages
......@@ -122,12 +122,12 @@ pages:
- sphinx
needs:
- func-test
# - prod-test
- prod-test
script:
- mkdir -p public/func_test
- cp -r build/func_test/* public/func_test/
# - mkdir -p public/prod_test
# - cp -r build/prod_test/* public/prod_test
- mkdir -p public/prod_test
- cp -r build/prod_test/* public/prod_test
artifacts:
paths:
- public
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment