summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-10-27 16:02:48 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-10-29 08:11:33 +0100
commit0c9b09dff4913134e3e99bbdbef00a71c5e5d7e3 (patch)
tree6e396bce1577899cb2ac15b8afb8be2d19398799 /.travis.yml
parent0b58ffe0c9213aa9398c4db3bee8945bae5b7430 (diff)
downloadcurl-0c9b09dff4913134e3e99bbdbef00a71c5e5d7e3.tar.gz
travis: add a "make tidy" build that runs clang-tidy
Closes #3182
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 202242fa6..ab119272e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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
@@ -310,6 +315,12 @@ script:
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
source .travis-iconv-env.sh
./configure --enable-debug --enable-werror $C