1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

travis: add a "make tidy" build that runs clang-tidy

Closes #3182
This commit is contained in:
Daniel Stenberg 2018-10-27 16:02:48 +02:00
parent 0b58ffe0c9
commit 0c9b09dff4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -39,6 +39,7 @@ addons:
- libunistring-dev # for libidn2 needed by libpsl
- libnss3-dev
- gnutls-bin
- clang-tidy-6.0
matrix:
include:
@ -137,6 +138,10 @@ matrix:
compiler: clang
dist: trusty
env: T=fuzzer
- os: linux
compiler: clang
dist: trusty
env: T=tidy
install:
- if [ "$T" = "coverage" ]; then pip2 install --user cpp-coveralls; fi
@ -308,6 +313,12 @@ script:
make checksrc
fi
fi
- |
set -eo pipefail
if [ "$T" = "tidy" ]; then
./configure --enable-warnings --enable-werror $C
make && make tidy
fi
- |
set -eo pipefail
if [ "$T" = "iconv" ]; then