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

WIP: pipeline

parent e81c68bb
No related branches found
No related tags found
No related merge requests found
Pipeline #8434 failed
ARG CPPLIB_REGISTRY_IMAGE ARG CPPLIB_REGISTRY_IMAGE
ARG CPPLIB_VERSION
FROM $CPPLIB_REGISTRY_IMAGE FROM $CPPLIB_REGISTRY_IMAGE
COPY .docker/wait-for-it.sh /wait-for-it.sh COPY .docker/wait-for-it.sh /wait-for-it.sh
...@@ -17,6 +18,11 @@ RUN rm -rf .git ...@@ -17,6 +18,11 @@ RUN rm -rf .git
RUN apt-get install -y openjdk-11-jdk-headless RUN apt-get install -y openjdk-11-jdk-headless
CMD ls -la && cd build/ && /wait-for-it.sh caosdb-server:10443 -t 500 -- \ # build and run tests
# ... and run tests CMD ls -la && \
cmake .. && cmake --build . && ctest mkdir build && \
cd build && \
/wait-for-it.sh caosdb-server:10443 -t 500 -- \
cmake -D CMAKE_PREFIX_PATH=/usr/local/lib/libcaosdb-${CPPLIB_VERSION} .. && \
cmake --build . && \
ctest
...@@ -5,9 +5,6 @@ services: ...@@ -5,9 +5,6 @@ services:
networks: networks:
- docker_caosnet - docker_caosnet
volumes: volumes:
- type: bind
source: ../build
target: /caosdb-cppinttest/build
- type: bind - type: bind
source: ./cert source: ./cert
target: /cert target: /cert
......
...@@ -116,10 +116,6 @@ build-test: ...@@ -116,10 +116,6 @@ build-test:
- cd build - cd build
- 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:
paths:
- build/
expire_in: 1 week
test: test:
...@@ -134,8 +130,6 @@ test: ...@@ -134,8 +130,6 @@ test:
stage: test stage: test
image: $CI_REGISTRY_IMAGE_BASE image: $CI_REGISTRY_IMAGE_BASE
needs: needs:
- job: build-test
artifacts: true
- job: cert - job: cert
artifacts: true artifacts: true
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment