Unverified Commit 8ae3db51 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

travis: add scan-build

Closes #3564
parent 5341c656
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -146,6 +146,10 @@ matrix:
          compiler: clang
          dist: trusty
          env: T=tidy
        - os: linux
          compiler: clang
          dist: trusty
          env: T=scan-build
        - os: linux
          compiler: clang
          dist: trusty
@@ -404,6 +408,11 @@ script:
          ./mainline.sh ${CURLSRC}
          popd
        fi
    - |
        if [ "$T" = "scan-build" ]; then
             scan-build ./configure --enable-debug --enable-werror $C
             scan-build --status-bugs make && scan-build --status-bugs make examples
        fi

# whitelist branches to avoid testing feature branches twice (as branch and as pull request)
branches: