Commit cc29d01d authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

Merge branch '33-rmv-mlmc-in-pipeline' into 'feature'

Resolve "Rmv mlmc in Pipeline"

Closes #33

See merge request !46
parents 12fce4bc 752eb185
Pipeline #157928 passed with stages
in 16 minutes and 45 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
......
......@@ -17,6 +17,9 @@ RUN tar xjf sprng5.tar.bz2 && \
make -j20 && \
cd .. && \
cd mpp && \
git config --get remote.origin.fetch && \
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && \
git config --get remote.origin.fetch && \
git fetch --all && \
git checkout $UPSTREAM_COMMIT && \
cd .. && \
......
Markdown is supported
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