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

WIP: pipeline

parent 313c36d5
No related branches found
No related tags found
No related merge requests found
......@@ -2,5 +2,11 @@ FROM debian:latest
RUN apt-get update && \
apt-get install -y cmake
RUN apt-get install -y libcmocka-dev
#RUN apt-get install -y lcov
#RUN apt-get install -y doxygen
#RUN apt-get install -y python3-pip
COPY ./ caosdb-clib/
#COPY ./ caosdb-clib/
......@@ -3,16 +3,18 @@ set(test_cases
test_connection
)
# look for pre-installed cmocka headers
find_library(cmocka cmocka)
if (cmocka)
message(STATUS "Found pre-installed cmocka: ${cmocka-static}")
set(cmocka-link "cmocka")
elseif (${CMAKE_VERSION} VERSION_LESS "3.14.0")
message(FATAL_ERROR
"Failed to run tests. A pre-installed cmocka could not be found and
your cmake version is prior to 3.14. Please consider to upgrade you
cmake (>=3.14) or install cmocka.")
"Failed to run tests. Pre-installed cmocka headers could not be found
and your cmake version is prior to 3.14. Please consider to upgrade your
cmake (>=3.14) or install cmocka headers.")
else ()
# cmake >= 3.14
include(FetchCMocka)
set(cmocka-link "cmocka-static")
endif ()
......
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