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

WIP: pipeline

parent d44ab4d1
No related branches found
No related tags found
No related merge requests found
Pipeline #8240 failed
......@@ -6,6 +6,6 @@ RUN mkdir build
WORKDIR /libcaosdb/build
RUN cmake ..
RUN cmake --build .
RUN cmake --install .
RUN cmake --install . --prefix /usr/local/
CMD /bin/bash
......@@ -25,6 +25,7 @@ variables:
TRIGGERED_BY_REPO: CPPINTTEST
TRIGGERED_BY_REF: $CI_COMMIT_REF_NAME
TRIGGERED_BY_HASH: $CI_COMMIT_SHORT_SHA
CPPLIB_VERSION: 0.0.1
stages:
- setup
......@@ -60,6 +61,6 @@ test:
script:
- mkdir build
- cd build
- cmake ..
- cmake -D CMAKE_PREFIX_PATH=/usr/local/include/libcaosdb-${CPPLIB_VERSION} ..
- cmake --build .
- ctest
......@@ -23,11 +23,11 @@ set(test_cases
test_connection
)
find_package(caosdb PATHS /home/tf/libcaosdb/lib/libcaosdb-0.0.1/ REQUIRED)
find_package(caosdb REQUIRED)
include(FetchGTest)
# add special cmake functions for gtest
include(GoogleTest)
include(GoogleTest REQUIRED)
# loop over all test cases and add them to the test runner
list(LENGTH test_cases len_test_cases)
......
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