Skip to content
Snippets Groups Projects
Commit 0336efae authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

updated gitlab ci, testdata download

Former-commit-id: a427ac99
parent 2c095d0f
No related branches found
No related tags found
No related merge requests found
...@@ -2,11 +2,13 @@ stages: ...@@ -2,11 +2,13 @@ stages:
- build - build
- test - test
- compare - compare
# - container
default: default:
tags: tags:
- podman - podman
alma8-build: alma8-build:
image: harbor.wolke.img.univie.ac.at/flexpart/almalinux8:latest image: harbor.wolke.img.univie.ac.at/flexpart/almalinux8:latest
stage: build stage: build
...@@ -22,7 +24,7 @@ alma8-build: ...@@ -22,7 +24,7 @@ alma8-build:
paths: paths:
- ./src/FLEXPART - ./src/FLEXPART
- ./src/FLEXPART_ETA - ./src/FLEXPART_ETA
expire_in: never expire_in: 1d
rocky9-build: rocky9-build:
image: harbor.wolke.img.univie.ac.at/flexpart/rockylinux9:latest image: harbor.wolke.img.univie.ac.at/flexpart/rockylinux9:latest
...@@ -39,7 +41,27 @@ rocky9-build: ...@@ -39,7 +41,27 @@ rocky9-build:
paths: paths:
- ./src/FLEXPART - ./src/FLEXPART
- ./src/FLEXPART_ETA - ./src/FLEXPART_ETA
expire_in: 1d
.download:
cache:
paths:
- ./tests/testdata
policy: pull
setup:
stage: test
image: harbor.wolke.img.univie.ac.at/flexpart/rockylinux9:latest
script:
- mkdir ./tests/testdata
- wget -P ./tests/testdata "https://webdata.wolke.img.univie.ac.at/flexpart/*"
extends: .download
cache:
policy: pull-push
artifacts:
expire_in: never expire_in: never
paths:
- ./tests/testdata
options-test: options-test:
# image: harbor.wolke.img.univie.ac.at/flexpart/almalinux8:latest # image: harbor.wolke.img.univie.ac.at/flexpart/almalinux8:latest
...@@ -49,6 +71,7 @@ options-test: ...@@ -49,6 +71,7 @@ options-test:
- alma8-build - alma8-build
- rocky9-build - rocky9-build
extends: .download
script: script:
- ulimit -s unlimited - ulimit -s unlimited
- bash ./tests/run_default_options_test.sh - bash ./tests/run_default_options_test.sh
...@@ -76,6 +99,8 @@ nests-test: ...@@ -76,6 +99,8 @@ nests-test:
artifacts: artifacts:
when: on_success when: on_success
paths: paths:
- ./tests/output_nests
expire_in: 5 mins
openmp-simulation: openmp-simulation:
# image: harbor.wolke.img.univie.ac.at/flexpart/almalinux8:latest # image: harbor.wolke.img.univie.ac.at/flexpart/almalinux8:latest
...@@ -179,4 +204,8 @@ documentation: ...@@ -179,4 +204,8 @@ documentation:
- if: '$CI_COMMIT_REF_NAME == "master"' - if: '$CI_COMMIT_REF_NAME == "master"'
script: script:
- cd ./documentation && mkdocs build -c --verbose - cd ./documentation && mkdocs build -c --verbose
- sshpass -p "$WOLKE_PASSWORD" rsync -autv --delete -e "ssh -o StrictHostKeyChecking=no" /tmp/cr-site/* "$WOLKE_USER@wolke.img.univie.ac.at:/var/www/flexpart/docs" - sshpass -p "$WOLKE_PASSWORD" rsync -autv --delete -e "ssh -o StrictHostKeyChecking=no" /tmp/cr-site/* "$WOLKE_USER@wolke.img.univie.ac.at:/var/www/flexpart/docs"
\ No newline at end of file
# base:
# stage: container
# image:
\ No newline at end of file
...@@ -15,7 +15,11 @@ ARG COMMIT=0 ...@@ -15,7 +15,11 @@ ARG COMMIT=0
ENV COMMIT=$COMMIT ENV COMMIT=$COMMIT
COPY ./src /src COPY ./src /src
COPY ./tests/default_options /options COPY ./tests/default_options /options
COPY ./tests/default_winds /inputs
# since the new data set is larger, we download the data for the container
RUN wget -P /inputs "https://webdata.wolke.img.univie.ac.at/flexpart/*"
# COPY ./tests/default_winds /inputs
COPY ./entrypoint.sh /entrypoint.sh COPY ./entrypoint.sh /entrypoint.sh
WORKDIR /src WORKDIR /src
# #
......
./current/ ./current/
./output/ ./output/
./default_winds/ ./testdata/
./default_winds/AVAILABLE ./default_winds/AVAILABLE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment