summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: b41e94d0a1daa4c0d98782d4b617eb7ba1c244b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 libmaxminddb-dev netcat-openbsd python3 python3-jsonschema
script:
- git clone https://github.com/ntop/nDPI.git
- cd nDPI &&
  git checkout a6029d250d9c5dd0d7346fe47de838c243c20cac &&
  ./autogen.sh --prefix=$(realpath ./_install) --with-sanitizer --with-only-libndpi &&
  make install -j4 &&
  cd ..
- make -f Makefile.old NDPI_WITH_GCRYPT=yes CUSTOM_LIBNDPI=./nDPI/_install/lib/libndpi.a ENABLE_DEBUG=yes ENABLE_SANITIZER=yes all examples
- env python3 --version
- test/run_tests.sh nDPI
- make -f Makefile.old clean
- PKG_CONFIG_PATH="$(realpath ./nDPI/_install/lib/pkgconfig)" make -f Makefile.old PKG_CONFIG_BIN=pkg-config ENABLE_DEBUG=yes ENABLE_SANITIZER=yes all examples