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
bbb11f76
Verified
Commit
bbb11f76
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: pipeline
parent
1f77263d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#8520
failed
3 years ago
Stage: info
Stage: setup
Stage: build
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.docker/Dockerfile
+3
-4
3 additions, 4 deletions
.docker/Dockerfile
.docker/run.sh
+1
-2
1 addition, 2 deletions
.docker/run.sh
.docker/tester.yml
+0
-2
0 additions, 2 deletions
.docker/tester.yml
.gitlab-ci.yml
+3
-8
3 additions, 8 deletions
.gitlab-ci.yml
with
7 additions
and
16 deletions
.docker/Dockerfile
+
3
−
4
View file @
bbb11f76
ARG
CPPLIB_REGISTRY_IMAGE
ARG
CPPLIB_VERSION=bla
FROM
$CPPLIB_REGISTRY_IMAGE
COPY
.docker/wait-for-it.sh /wait-for-it.sh
...
...
@@ -8,7 +7,7 @@ COPY .docker/wait-for-it.sh /wait-for-it.sh
WORKDIR
/libcaosdb/
RUN
mkdir
build
WORKDIR
/libcaosdb/build
RUN
cmake ..
RUN
cmake
-D
INSTALL_DIR_NAME
=
libcaosdb
..
RUN
cmake
--build
.
RUN
cmake
--install
.
--prefix
/usr/local/
...
...
@@ -22,10 +21,10 @@ RUN apt-get install -y openjdk-11-jdk-headless
# build and run tests
CMD
ls -la && \
ls -la /usr/local/lib/ && \
ls -la /usr/local/lib/libcaosdb
-$ENV_CPPLIB_VERSION
&& \
ls -la /usr/local/lib/libcaosdb && \
mkdir build && \
cd build && \
/wait-for-it.sh caosdb-server:10443 -t 500 -- \
cmake -D CMAKE_PREFIX_PATH=/usr/local/lib/libcaosdb
-$ENV_CPPLIB_VERSION
.. && \
cmake -D CMAKE_PREFIX_PATH=/usr/local/lib/libcaosdb .. && \
cmake --build . && \
ctest
This diff is collapsed.
Click to expand it.
.docker/run.sh
+
1
−
2
View file @
bbb11f76
#!/bin/sh
echo
$CPPLIB_VERSION
CPPLIB_VERSION
=
$CPPLIB_VERSION
docker-compose
-f
tester.yml run tester
docker-compose
-f
tester.yml run tester
rv
=
$?
echo
$rv
>
result
This diff is collapsed.
Click to expand it.
.docker/tester.yml
+
0
−
2
View file @
bbb11f76
...
...
@@ -4,8 +4,6 @@ services:
image
:
"
$CPPINTTEST_REGISTRY_IMAGE"
networks
:
-
docker_caosnet
environment
:
ENV_CPPLIB_VERSION
:
"
$CPPLIB_VERSION"
volumes
:
-
type
:
bind
source
:
./cert
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
3
−
8
View file @
bbb11f76
...
...
@@ -33,16 +33,11 @@ variables:
# this is the name of the image in the /image-cache/ directory
CPPINTTEST_IMAGE_CACHE
:
caosdb-cppinttest-testenv:$CI_COMMIT_REF_NAME.tar
## FOR DEBUGGING
TRIGGERED_BY_REPO
:
CPPINTTEST
TRIGGERED_BY_REF
:
$CI_COMMIT_REF_NAME
TRIGGERED_BY_HASH
:
$CI_COMMIT_SHORT_SHA
## Run tests against this cpplib version
CPPLIB_VERSION
:
0.0.1
# This is the caosdb-deploy branch which build the images for caosdb-server and caosdb-mysql
# TODO change to dev after merge of f-grpc to dev
...
...
@@ -65,6 +60,7 @@ info:
-
echo "$CI_REGISTRY_IMAGE_BASE"
-
echo "$CPPINTTEST_REGISTRY_IMAGE"
-
echo "$CPPINTTEST_IMAGE_CACHE"
-
echo "$CAOSDB_TAG"
# Build a docker image in which tests for this repository can run
...
...
@@ -95,7 +91,6 @@ build-testenv:
-
docker pull $CPPLIB_REGISTRY_IMAGE ||
true
# remove??? docker build --pull???
-
docker build
--build-arg CPPLIB_REGISTRY_IMAGE=$CPPLIB_REGISTRY_IMAGE
--build-arg CPPLIB_VERSION=$CPPLIB_VERSION
--file .docker/Dockerfile
--pull
--cache-from $CPPINTTEST_REGISTRY_IMAGE
...
...
@@ -115,7 +110,7 @@ build-test:
-
echo $PWD
-
mkdir build
-
cd build
-
cmake -D CMAKE_PREFIX_PATH=/usr/local/lib/libcaosdb
-${CPPLIB_VERSION}
..
-
cmake -D CMAKE_PREFIX_PATH=/usr/local/lib/libcaosdb ..
-
cmake --build .
...
...
@@ -164,7 +159,7 @@ test:
# the pyinttest docker writes the return value of the tests into the
# file result
-
CPPLIB_VERSION=$CPPLIB_VERSION
/bin/sh ./run.sh
-
/bin/sh ./run.sh
# collect log files
-
docker logs docker_caosdb-server_1 &> ../caosdb_log.txt
...
...
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