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 ...@@ -2,5 +2,11 @@ FROM debian:latest
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y cmake apt-get install -y cmake
RUN apt-get install -y libcmocka-dev 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 ...@@ -3,16 +3,18 @@ set(test_cases
test_connection test_connection
) )
# look for pre-installed cmocka headers
find_library(cmocka cmocka) find_library(cmocka cmocka)
if (cmocka) if (cmocka)
message(STATUS "Found pre-installed cmocka: ${cmocka-static}") message(STATUS "Found pre-installed cmocka: ${cmocka-static}")
set(cmocka-link "cmocka") set(cmocka-link "cmocka")
elseif (${CMAKE_VERSION} VERSION_LESS "3.14.0") elseif (${CMAKE_VERSION} VERSION_LESS "3.14.0")
message(FATAL_ERROR message(FATAL_ERROR
"Failed to run tests. A pre-installed cmocka could not be found and "Failed to run tests. Pre-installed cmocka headers could not be found
your cmake version is prior to 3.14. Please consider to upgrade you and your cmake version is prior to 3.14. Please consider to upgrade your
cmake (>=3.14) or install cmocka.") cmake (>=3.14) or install cmocka headers.")
else () else ()
# cmake >= 3.14
include(FetchCMocka) include(FetchCMocka)
set(cmocka-link "cmocka-static") set(cmocka-link "cmocka-static")
endif () endif ()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment