Commit 6e45c873 authored by laura.pfeiffer's avatar laura.pfeiffer
Browse files

Merge branch 'convergenceTestsMonodomain' of git.scc.kit.edu:mpp/cardmech into...

Merge branch 'convergenceTestsMonodomain' of git.scc.kit.edu:mpp/cardmech into convergenceTestsMonodomain
parents c700ad8c 39ecee0e
Pipeline #219541 passed with stages
in 38 minutes and 16 seconds
......@@ -2,76 +2,63 @@ stages:
- build
- test
- debug
- benchmark
- deploy
variables:
OS: "ubuntu"
OS_VERSION: "20.04"
IMAGE_NAME_CARDMECH: "cardmech-${CI_COMMIT_SHORT_SHA}-${OS}${OS_VERSION}-${CI_PIPELINE_ID}"
DOCKER_TLS_CERTDIR: "/certs"
include:
- project: 'mpp/mpp'
ref: feature
file: '.mpp-ci-templates.yml'
services:
- docker:dind
variables:
extends: .global-variables
build cardmech:
stage: build
build:
extends: .build_template
variables:
GIT_SUBMODULE_STRATEGY: recursive
image: docker:latest
before_script:
- docker info
- docker login -u $MPP_REGISTRY_USER -p $MPP_REGISTRY_PASS ${MPP_REGISTRY}
script:
- sed s/REGISTRY/${MPP_REGISTRY}\\/${MPP_REGISTRY_REPO_RELEASE}/g docker/cardmech.baseimage >
docker/cardmech_registry.baseimage
- sed s/UBUNTUVERSION/${OS_VERSION}/g docker/cardmech_registry.baseimage >
docker/${IMAGE_NAME_CARDMECH}.baseimage
- docker build
--build-arg UPSTREAM_COMMIT=${UPSTREAM_COMMIT}
--no-cache -t ${MPP_REGISTRY}/${MPP_REGISTRY_REPO_DEV}/${IMAGE_NAME_CARDMECH}
-f docker/${IMAGE_NAME_CARDMECH}.baseimage .
- docker push ${MPP_REGISTRY}/${MPP_REGISTRY_REPO_DEV}/${IMAGE_NAME_CARDMECH}
dependencies: [ ]
tags: [ docker ]
PROJECT_NAME: 'cardmech'
test cardmech 1/2:
stage: test
extends: .test_template
variables:
GIT_STRATEGY: none
image: ${MPP_REGISTRY}/${MPP_REGISTRY_REPO_DEV}/${IMAGE_NAME_CARDMECH}
PROJECT_NAME: 'cardmech'
script:
- cd /mpp/build
- ./cardmech/test/cellmodels/TestElphyModels
- ./cardmech/test/elasticity/TestMaterial
dependencies: [ "build cardmech" ]
tags: [ docker ]
test cardmech 2/2:
stage: test
extends: .test_template
variables:
GIT_STRATEGY: none
image: ${MPP_REGISTRY}/${MPP_REGISTRY_REPO_DEV}/${IMAGE_NAME_CARDMECH}
PROJECT_NAME: 'cardmech'
script:
- cd /mpp/build
- python3 mppyrun.py --mpi_tests=1 --mute=0
dependencies: [ "build cardmech" ]
tags: [ docker ]
debug cardmech:
stage: debug
when: on_failure
#debug cardmech:
# stage: debug
# when: on_failure
# variables:
# GIT_STRATEGY: none
# image: ${MPP_REGISTRY}/${MPP_REGISTRY_REPO_DEV}/${IMAGE_NAME_CARDMECH}
# script:
# - cd /mpp/build
# - ctest
# dependencies: [ "build cardmech" ]
# tags: [ docker ]
ventricle-test:
extends: .benchmark_on_horeka
variables:
GIT_STRATEGY: none
image: ${MPP_REGISTRY}/${MPP_REGISTRY_REPO_DEV}/${IMAGE_NAME_CARDMECH}
CMAKE_ARGS: '-DMPP_BUILD_TYPE=MppRelease'
script:
- cd /mpp/build
- ctest
dependencies: [ "build cardmech" ]
tags: [ docker ]
- salloc -p cpuonly -t 00:10:00 -n 4 mpirun Elphy-M++ BiVentricleTest/start
deploy cardmech:
stage: deploy
......
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