Skip to content
Snippets Groups Projects
Verified Commit 5eae3b92 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: pipeline

parent e9875330
No related branches found
No related tags found
No related merge requests found
Pipeline #8325 failed
...@@ -58,7 +58,7 @@ stages: ...@@ -58,7 +58,7 @@ stages:
info: info:
tags: [cached-dind] tags: [cached-dind]
image: docker:20.10 image: docker:20.10
stage: setup_tests stage: info
timeout: 1 minutes timeout: 1 minutes
needs: [] needs: []
script: script:
...@@ -80,7 +80,7 @@ build-testenv: ...@@ -80,7 +80,7 @@ build-testenv:
- if echo "$CI_COMMIT_REF_NAME" | grep -c "^f-" ; then - if echo "$CI_COMMIT_REF_NAME" | grep -c "^f-" ; then
# this is an f-branch # this is an f-branch
CPPINT_REF=$CI_COMMIT_REF_NAME ; CPPINT_REF=$CI_COMMIT_REF_NAME ;
fi; fi
# ... or use main if possible... # ... or use main if possible...
- if [[ "$CI_COMMIT_REF_NAME" == "main" ]] ; then - if [[ "$CI_COMMIT_REF_NAME" == "main" ]] ; then
CPPINT_REF=main ; CPPINT_REF=main ;
...@@ -113,7 +113,7 @@ build-test: ...@@ -113,7 +113,7 @@ build-test:
- cmake -D CMAKE_PREFIX_PATH=/usr/local/lib/libcaosdb-${CPPLIB_VERSION} .. - cmake -D CMAKE_PREFIX_PATH=/usr/local/lib/libcaosdb-${CPPLIB_VERSION} ..
- cmake --build . - cmake --build .
artifacts: artifacts:
path: paths:
- build/ - build/
expire_in: 1 week expire_in: 1 week
...@@ -139,27 +139,27 @@ test: ...@@ -139,27 +139,27 @@ test:
# the CAOSDB_TAG has to be guessed... # the CAOSDB_TAG has to be guessed...
if echo "$F_BRANCH" | grep -c "^f-" ; then if echo "$F_BRANCH" | grep -c "^f-" ; then
CAOSDB_TAG=${DEPLOY_REF}_F_${F_BRANCH}-latest; CAOSDB_TAG=${DEPLOY_REF}_F_${F_BRANCH}-latest;
echo "Load deploy images with tag: $CAOSDB_TAG ..." echo "Load deploy images with tag $CAOSDB_TAG ..."
if ! docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ; then if ! docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ; then
echo "Load deploy images with tag: $CAOSDB_TAG ... error. Try another:" ; echo "Load deploy images with tag $CAOSDB_TAG ... error. Try another:" ;
CAOSDB_TAG=${DEPLOY_REF}-latest ; CAOSDB_TAG=${DEPLOY_REF}-latest ;
echo "Load deploy images with tag: $CAOSDB_TAG ..." echo "Load deploy images with tag $CAOSDB_TAG ..."
docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ; docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ;
echo "Load deploy images with tag: $CAOSDB_TAG ... success" echo "Load deploy images with tag $CAOSDB_TAG ... success"
fi fi
else else
# no F_BRANCH -> use default DEPLOY_REF branch # no F_BRANCH -> use default DEPLOY_REF branch
CAOSDB_TAG=${DEPLOY_REF}-latest ; CAOSDB_TAG=${DEPLOY_REF}-latest ;
echo "Load deploy images with tag: $CAOSDB_TAG ..." echo "Load deploy images with tag $CAOSDB_TAG ..."
docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ; docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ;
echo "Load deploy images with tag: $CAOSDB_TAG ... success" echo "Load deploy images with tag $CAOSDB_TAG ... success"
fi; fi;
else else
# If the CAOSDB_TAG was given # If the CAOSDB_TAG was given
echo "Load deploy images with tag: $CAOSDB_TAG ..." echo "Load deploy images with tag $CAOSDB_TAG ..."
docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ; docker pull $CI_REGISTRY/caosdb/src/caosdb-deploy:$CAOSDB_TAG ;
echo "Load deploy images with tag: $CAOSDB_TAG ... success" echo "Load deploy images with tag $CAOSDB_TAG ... success"
fi fi
- docker load < /image-cache/${CPPINTTEST_IMAGE_CACHE} || true - docker load < /image-cache/${CPPINTTEST_IMAGE_CACHE} || true
...@@ -193,7 +193,6 @@ test: ...@@ -193,7 +193,6 @@ test:
# exit with fail when errors exist # exit with fail when errors exist
- exit $rc - exit $rc
dependencies: [cert]
timeout: 3h timeout: 3h
artifacts: artifacts:
paths: paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment