Commit 752eb185 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

renaming

parent 33befa16
Pipeline #157346 passed with stages
in 12 minutes and 26 seconds
......@@ -7,86 +7,86 @@ stages:
variables:
OS: "ubuntu"
OS_VERSION_MLMC: "20.04"
OS_VERSION_MLUQ: "20.04"
REGISTRY: "ci.cluster.math.kit.edu"
IMAGE_NAME_MLMC: "mlmc-${CI_COMMIT_SHORT_SHA}-${OS}${OS_VERSION_MLMC}-${CI_PIPELINE_ID}"
IMAGE_NAME_MLUQ: "mluq-${CI_COMMIT_SHORT_SHA}-${OS}${OS_VERSION_MLUQ}-${CI_PIPELINE_ID}"
RUN_EXPERIMENTS: 'none'
HOST: 'horeka'
# ------------------------ Start of CI ------------------------
build-mlmc:
build-mluq:
stage: build
variables:
GIT_SUBMODULE_STRATEGY: recursive
only:
variables: [ $RUN_EXPERIMENTS == 'none' ]
script:
- sed s/REGISTRY/${REGISTRY}/g docker/mlmc.baseimage >
docker/mlmc_registry.baseimage
- sed s/UBUNTUVERSION/${OS_VERSION_MLMC}/g docker/mlmc_registry.baseimage >
docker/${IMAGE_NAME_MLMC}.baseimage
- sed s/REGISTRY/${REGISTRY}/g docker/mluq.baseimage >
docker/mluq_registry.baseimage
- sed s/UBUNTUVERSION/${OS_VERSION_MLUQ}/g docker/mluq_registry.baseimage >
docker/${IMAGE_NAME_MLUQ}.baseimage
- docker build
--build-arg UPSTREAM_COMMIT=${UPSTREAM_COMMIT}
--no-cache -t ${REGISTRY}/${IMAGE_NAME_MLMC}
-f docker/${IMAGE_NAME_MLMC}.baseimage .
--no-cache -t ${REGISTRY}/${IMAGE_NAME_MLUQ}
-f docker/${IMAGE_NAME_MLUQ}.baseimage .
dependencies: [ ]
tags: [ shell ]
ctest-mlmc:
ctest-mluq:
stage: test
variables:
GIT_STRATEGY: none
only:
variables: [ $RUN_EXPERIMENTS == 'none' ]
image: ${REGISTRY}/${IMAGE_NAME_MLMC}
image: ${REGISTRY}/${IMAGE_NAME_MLUQ}
script:
- cd /mpp/build/
- ctest
dependencies: [ "build-mlmc" ]
dependencies: [ "build-mluq" ]
tags: [ docker ]
mpitest-mlmc:
mpitest-mluq:
stage: test
variables:
GIT_STRATEGY: none
only:
variables: [ $RUN_EXPERIMENTS == 'none' ]
image: ${REGISTRY}/${IMAGE_NAME_MLMC}
image: ${REGISTRY}/${IMAGE_NAME_MLUQ}
script:
- cd /mpp/build/
- python3 mppyrun.py --mpi_tests=1 --mute=0
dependencies: [ "build-mlmc" ]
dependencies: [ "build-mluq" ]
tags: [ docker ]
deploy-mlmc:
deploy-mluq:
stage: deploy
variables:
GIT_STRATEGY: none
script:
- docker tag ${REGISTRY}/${IMAGE_NAME_MLMC}
${REGISTRY}/mlmc-${CI_COMMIT_TAG}-${OS}${OS_VERSION_MLMC}
- docker push ${REGISTRY}/mlmc-${CI_COMMIT_TAG}-${OS}${OS_VERSION_MLMC}
- docker tag ${REGISTRY}/${IMAGE_NAME_MLUQ}
${REGISTRY}/mluq-${CI_COMMIT_TAG}-${OS}${OS_VERSION_MLUQ}
- docker push ${REGISTRY}/mluq-${CI_COMMIT_TAG}-${OS}${OS_VERSION_MLUQ}
only: [ tags ]
dependencies: [ "ctest-mlmc", "mpitest-mlmc" ]
dependencies: [ "ctest-mluq", "mpitest-mluq" ]
tags: [ shell ]
clean-mlmc:
clean-mluq:
stage: .post
when: always
allow_failure: true
variables:
GIT_STRATEGY: none
script:
- docker rmi ${REGISTRY}/${IMAGE_NAME_MLMC}
dependencies: [ "build-mlmc" ]
- docker rmi ${REGISTRY}/${IMAGE_NAME_MLUQ}
dependencies: [ "build-mluq" ]
tags: [ shell ]
# ------------------------- End of CI -------------------------
# ------------------------ Start of CD ------------------------
# See https://www.nhr.kit.edu/userdocs/ci/ci-level2
elliptic-experiments-mlmc:
elliptic-experiments-mluq:
stage: experiments
variables:
GIT_STRATEGY: recursive
......@@ -109,7 +109,7 @@ elliptic-experiments-mlmc:
paths: [ build/log ]
elliptic-experiments-mlmc2:
elliptic-experiments-mluq2:
stage: experiments
variables:
GIT_STRATEGY: recursive
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment