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

WIP: pipeline

parent a3084067
No related branches found
No related tags found
No related merge requests found
Pipeline #8442 failed
ARG CPPLIB_REGISTRY_IMAGE
ARG CPPLIB_VERSION
ARG CPPLIB_VERSION=bla
FROM $CPPLIB_REGISTRY_IMAGE
COPY .docker/wait-for-it.sh /wait-for-it.sh
......@@ -24,10 +24,10 @@ RUN echo $ENV_CPPLIB_VERSION
# 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-$ENV_CPPLIB_VERSION && \
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-$ENV_CPPLIB_VERSION .. && \
cmake --build . && \
ctest
#!/bin/sh
docker-compose -f tester.yml run tester
echo $CPPLIB_VERSION
CPPLIB_VERSION=$CPPLIB_VERSION docker-compose -f tester.yml run tester
rv=$?
echo $rv > result
......@@ -164,7 +164,7 @@ test:
# the pyinttest docker writes the return value of the tests into the
# file result
- /bin/sh ./run.sh
- CPPLIB_VERSION=$CPPLIB_VERSION /bin/sh ./run.sh
# collect log files
- 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.
Finish editing this message first!
Please register or to comment