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

WIP: pipeline

parent a3084067
Branches
Tags
No related merge requests found
Pipeline #8442 failed
ARG CPPLIB_REGISTRY_IMAGE ARG CPPLIB_REGISTRY_IMAGE
ARG CPPLIB_VERSION ARG CPPLIB_VERSION=bla
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
...@@ -24,10 +24,10 @@ RUN echo $ENV_CPPLIB_VERSION ...@@ -24,10 +24,10 @@ RUN echo $ENV_CPPLIB_VERSION
# build and run tests # build and run tests
CMD ls -la && \ CMD ls -la && \
ls -la /usr/local/lib/ && \ ls -la /usr/local/lib/ && \
ls -la /usr/local/lib/libcaosdb-${ENV_CPPLIB_VERSION} && \ ls -la /usr/local/lib/libcaosdb-$ENV_CPPLIB_VERSION && \
mkdir build && \ mkdir build && \
cd build && \ cd build && \
/wait-for-it.sh caosdb-server:10443 -t 500 -- \ /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-$ENV_CPPLIB_VERSION .. && \
cmake --build . && \ cmake --build . && \
ctest ctest
#!/bin/sh #!/bin/sh
docker-compose -f tester.yml run tester echo $CPPLIB_VERSION
CPPLIB_VERSION=$CPPLIB_VERSION docker-compose -f tester.yml run tester
rv=$? rv=$?
echo $rv > result echo $rv > result
...@@ -164,7 +164,7 @@ test: ...@@ -164,7 +164,7 @@ test:
# the pyinttest docker writes the return value of the tests into the # the pyinttest docker writes the return value of the tests into the
# file result # file result
- /bin/sh ./run.sh - CPPLIB_VERSION=$CPPLIB_VERSION /bin/sh ./run.sh
# collect log files # collect log files
- docker logs docker_caosdb-server_1 &> ../caosdb_log.txt - docker logs docker_caosdb-server_1 &> ../caosdb_log.txt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment