blob: a65e108bffa27172f0febeef67b3b5112a6dcb7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
language: c
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y build-essential make binutils gcc autoconf automake libtool pkg-config git libpcap-dev libgcrypt-dev libgpg-error-dev libjson-c-dev netcat-openbsd python3 python3-jsonschema
script:
# static linked build
- mkdir build-cmake-submodule && cd build-cmake-submodule &&
cmake .. -DBUILD_EXAMPLES=ON -DBUILD_NDPI=ON -DENABLE_SANITIZER=ON && make && cd ..
- ./test/run_tests.sh ./libnDPI ./build-cmake-submodule/nDPId-test
- if ldd build/nDPId | grep -qoEi libndpi; then
echo 'nDPId linked against a static libnDPI should not contain a shared linked libnDPI.' >&2; false; fi
# pkg-config dynamic linked build
- mkdir build && cd build &&
PKG_CONFIG_PATH="$(realpath ../build-cmake-submodule/libnDPI/lib/pkgconfig)"
cmake .. -DBUILD_EXAMPLES=ON -DENABLE_SANITIZER=ON -DENABLE_MEMORY_PROFILING=ON && make && cd ..
- ./build/nDPId-test || test $? -eq 1
- ./build/nDPId -h || test $? -eq 1
# dameon start/stop test
- make -C ./build daemon
- make -C ./build daemon
# make dist
- ./scripts/make-dist.sh
|