diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-11-05 23:30:53 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-11-06 12:58:55 +0100 |
commit | 7515c8aeec3f6e60aa7e97e6903f6306ca7af34e (patch) | |
tree | 2583c254db17121facfd4b6b43cfe44abc064c55 /.gitlab-ci.yml | |
parent | 25f4ef74acb73340bd7cba7a7d45ab7191232283 (diff) |
Experimental systemd support.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d763fbba1..054bd441f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,12 +23,18 @@ build_and_test: # static linked build - mkdir build-cmake-submodule - cd build-cmake-submodule - - env CMAKE_C_FLAGS='-Werror' cmake .. -DENABLE_COVERAGE=ON -DBUILD_EXAMPLES=ON -DBUILD_NDPI=ON -DENABLE_SANITIZER=ON -DENABLE_ZLIB=ON + - env CMAKE_C_FLAGS='-Werror' cmake .. -DENABLE_SYSTEMD=ON -DENABLE_COVERAGE=ON -DBUILD_EXAMPLES=ON -DBUILD_NDPI=ON -DENABLE_SANITIZER=ON -DENABLE_ZLIB=ON - make libnDPI - tree libnDPI - make install VERBOSE=1 DESTDIR="$(realpath ../_install)" - cpack -G DEB + - sudo dpkg -i nDPId-*.deb - cd .. + - test -x /bin/systemctl && sudo systemctl daemon-reload + - test -x /bin/systemctl && sudo systemctl enable ndpid@lo + - test -x /bin/systemctl && sudo systemctl start ndpid@lo + - test -x /bin/systemctl && sudo systemctl status ndpisrvd.service ndpid@lo.service + - test -x /bin/systemctl && sudo systemctl stop ndpid@lo - ./test/run_tests.sh ./libnDPI ./build-cmake-submodule/nDPId-test # generate coverage report - make -C ./build-cmake-submodule coverage |