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

Pipeline

parent f153c80b
No related branches found
No related tags found
1 merge request!44Release 0.6
Pipeline #16194 passed
# #
# ** header v3.0
# This file is a part of the CaosDB Project. # This file is a part of the CaosDB Project.
# #
# Copyright (C) 2018 Research Group Biomedical Physics, # Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen # Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Copyright (C) 2019 Henrik tom Wörden # Copyright (C) 2019 Henrik tom Wörden
# Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as # it under the terms of the GNU Affero General Public License as
...@@ -19,8 +19,6 @@ ...@@ -19,8 +19,6 @@
# You should have received a copy of the GNU Affero General Public License # You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
# #
# ** end header
#
variables: variables:
DEPLOY_REF: f-grpc DEPLOY_REF: f-grpc
...@@ -41,6 +39,9 @@ stages: ...@@ -41,6 +39,9 @@ stages:
- test - test
- deploy - deploy
.env: &env
- F_BRANCH="${CI_COMMIT_REF_NAME}"
info: info:
tags: [cached-dind] tags: [cached-dind]
image: docker:20.10 image: docker:20.10
...@@ -50,7 +51,8 @@ info: ...@@ -50,7 +51,8 @@ info:
- *env - *env
- echo "Pipeline triggered by $TRIGGERED_BY_REPO@$TRIGGERED_BY_REF ($TRIGGERED_BY_HASH)" - echo "Pipeline triggered by $TRIGGERED_BY_REPO@$TRIGGERED_BY_REF ($TRIGGERED_BY_HASH)"
- echo "Pipeline will trigger DEPLOY with branch $DEPLOY_REF" - echo "Pipeline will trigger DEPLOY with branch $DEPLOY_REF"
- echo "F_BRANCH: $F_BRANCH" - echo "F_BRANCH = $F_BRANCH"
# Setup: Build a docker image in which tests for this repository can run # Setup: Build a docker image in which tests for this repository can run
build-testenv: build-testenv:
...@@ -81,22 +83,7 @@ test: ...@@ -81,22 +83,7 @@ test:
- mvn compile - mvn compile
- mvn test - mvn test
.env: &env
- F_BRANCH="${CI_COMMIT_REF_NAME}"
# TODO remove, this is grpc-special stuff
# server in f-grpc-dev branch matches with dev branch of cpplib/cppinttest
- if echo "$F_BRANCH" | grep -c "^f-grpc-dev$"; then
F_BRANCH=dev;
fi
# server in f-grpc-main branch matches with main branch of cpplib/cppinttest
- if echo "$F_BRANCH" | grep -c "^f-grpc-main$"; then
F_BRANCH=main;
fi
# server in f-grpc-f-something branch matches with f-something branch of cpplib/cppinttest
- if echo "$F_BRANCH" | grep -c "^f-grpc-f-.*$"; then
F_BRANCH=`echo "${F_BRANCH:7}"`;
fi
# Deploy: Trigger building of server image and integration tests # Deploy: Trigger building of server image and integration tests
trigger_build: trigger_build:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment