Commit 11fdd1b8 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

Update .gitlab-ci.yml file

parent a32ff46e
Pipeline #219534 failed
......@@ -2,63 +2,39 @@ 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:
......@@ -73,6 +49,17 @@ debug cardmech:
dependencies: [ "build cardmech" ]
tags: [ docker ]
ventricle-test:
extends: .benchmark_on_horeka
variables:
CMAKE_ARGS: '-DMPP_BUILD_TYPE=MppRelease'
script:
- salloc -p cpuonly -t 00:10:00 -n 4 mpirun Elphy-M++ BiVentricleTest/start
deploy cardmech:
stage: deploy
image: docker:latest
......
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