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

WIP: pipeline

parent d44ab4d1
Branches
Tags
No related merge requests found
Pipeline #8240 failed
...@@ -6,6 +6,6 @@ RUN mkdir build ...@@ -6,6 +6,6 @@ RUN mkdir build
WORKDIR /libcaosdb/build WORKDIR /libcaosdb/build
RUN cmake .. RUN cmake ..
RUN cmake --build . RUN cmake --build .
RUN cmake --install . RUN cmake --install . --prefix /usr/local/
CMD /bin/bash CMD /bin/bash
...@@ -25,6 +25,7 @@ variables: ...@@ -25,6 +25,7 @@ variables:
TRIGGERED_BY_REPO: CPPINTTEST TRIGGERED_BY_REPO: CPPINTTEST
TRIGGERED_BY_REF: $CI_COMMIT_REF_NAME TRIGGERED_BY_REF: $CI_COMMIT_REF_NAME
TRIGGERED_BY_HASH: $CI_COMMIT_SHORT_SHA TRIGGERED_BY_HASH: $CI_COMMIT_SHORT_SHA
CPPLIB_VERSION: 0.0.1
stages: stages:
- setup - setup
...@@ -60,6 +61,6 @@ test: ...@@ -60,6 +61,6 @@ test:
script: script:
- mkdir build - mkdir build
- cd build - cd build
- cmake .. - cmake -D CMAKE_PREFIX_PATH=/usr/local/include/libcaosdb-${CPPLIB_VERSION} ..
- cmake --build . - cmake --build .
- ctest - ctest
...@@ -23,11 +23,11 @@ set(test_cases ...@@ -23,11 +23,11 @@ set(test_cases
test_connection test_connection
) )
find_package(caosdb PATHS /home/tf/libcaosdb/lib/libcaosdb-0.0.1/ REQUIRED) find_package(caosdb REQUIRED)
include(FetchGTest) include(FetchGTest)
# add special cmake functions for gtest # add special cmake functions for gtest
include(GoogleTest) include(GoogleTest REQUIRED)
# loop over all test cases and add them to the test runner # loop over all test cases and add them to the test runner
list(LENGTH test_cases len_test_cases) list(LENGTH test_cases len_test_cases)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment