Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cppinttest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cppinttest
Commits
5eae3b92
Verified
Commit
5eae3b92
authored
4 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: pipeline
parent
e9875330
No related branches found
No related tags found
No related merge requests found
Pipeline
#8325
failed
4 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+11
-12
11 additions, 12 deletions
.gitlab-ci.yml
with
11 additions
and
12 deletions
.gitlab-ci.yml
+
11
−
12
View file @
5eae3b92
...
@@ -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
:
path
s
:
-
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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment