CI (GitHub & sourcehut): add clang-tidy checks.
[tinc] / .builds / freebsd.yml
1 image: freebsd/13.x
2
3 packages:
4   - autotools
5   - openssl
6   - lzo2
7   - liblz4
8   - ncurses
9   - miniupnpc
10   - readline
11   - texinfo
12   - vde2
13   - libgcrypt
14   - llvm12
15   - py38-pip
16
17 environment:
18   CFLAGS: -I/usr/local/include -L/usr/local/lib
19
20 sources:
21   - https://github.com/gsliepen/tinc
22
23 tasks:
24   - configure: |
25       cd tinc
26       autoreconf -fsi
27       ./configure --enable-miniupnpc --enable-vde
28
29   - build: |
30       cd tinc
31       make -j$(sysctl -n hw.ncpu)
32
33   - test: |
34       cd tinc
35       make check-recursive VERBOSE=1
36
37   - lint: |
38       export PATH=$PATH:$HOME/.local/bin
39       pip install --user compiledb
40       cd tinc
41       compiledb -n make check
42       find src \
43         ! '(' -path src/solaris -prune ')' \
44         ! '(' -path src/mingw   -prune ')' \
45         ! '(' -path src/linux   -prune ')' \
46         ! -name tunemu.c \
47         -name '*.c' \
48         -exec clang-tidy12 --header-filter='.*' '{}' +