image: freebsd/13.x
packages:
- - autotools
+ - coreutils
+ - meson
+ - pkgconf
- openssl
- lzo2
- liblz4
- texinfo
- vde2
- libgcrypt
- - llvm12
- - py38-pip
-
-environment:
- CFLAGS: -I/usr/local/include -L/usr/local/lib
+ - cmocka
sources:
- https://github.com/gsliepen/tinc
tasks:
- configure: |
cd tinc
- autoreconf -fsi
- ./configure --enable-miniupnpc --enable-vde
+ meson setup build -Dpkg_config_path=/usr/local/lib/pkgconfig
- build: |
cd tinc
- make -j$(sysctl -n hw.ncpu)
+ ninja -C build
- test: |
cd tinc
- make check-recursive VERBOSE=1
-
- - lint: |
- export PATH=$PATH:$HOME/.local/bin
- pip install --user compiledb
- cd tinc
- compiledb -n make check
- find src \
- ! '(' -path src/solaris -prune ')' \
- ! '(' -path src/mingw -prune ')' \
- ! '(' -path src/linux -prune ')' \
- ! -name tunemu.c \
- -name '*.c' \
- -exec clang-tidy12 --header-filter='.*' '{}' +
+ meson test -C build --verbose