Skip to content

Commit

Permalink
travis-ci: add static analysis build job to run coccicheck
Browse files Browse the repository at this point in the history
Add a dedicated build job for static analysis. As a starter we only run
coccicheck but in the future we could run Clang Static Analyzer or
similar tools, too.

Signed-off-by: Lars Schneider <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
larsxschneider authored and gitster committed Apr 17, 2017
1 parent 49800c9 commit d8245bb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ matrix:
# Use the following command to debug the docker build locally:
# $ docker run -itv "${PWD}:/usr/src/git" --entrypoint /bin/bash daald/ubuntu32:xenial
# root@container:/# /usr/src/git/ci/run-linux32-build.sh
- env: Static Analysis
os: linux
compiler:
addons:
apt:
packages:
- coccinelle
before_install:
script:
# "before_script" that builds Git is inherited from base job
- make coccicheck
after_failure:
- env: Documentation
os: linux
compiler: clang
Expand Down

0 comments on commit d8245bb

Please sign in to comment.