travis-ci: add static analysis build job to run coccicheck

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 <larsxschneider@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Lars Schneider committed Apr 11, 2017 at 09:26 UTC d8245bb3fd4442dbc8da8d3b7167d48f83687992
1 file changed +12
.travis.yml
+12
@@ -60,6 +60,18 @@ matrix:
60 # Use the following command to debug the docker build locally:
61 # $ docker run -itv "${PWD}:/usr/src/git" --entrypoint /bin/bash daald/ubuntu32:xenial
62 # root@container:/# /usr/src/git/ci/run-linux32-build.sh
63 + - env: Static Analysis
64 + os: linux
65 + compiler:
66 + addons:
67 + apt:
68 + packages:
69 + - coccinelle
70 + before_install:
71 + script:
72 + # "before_script" that builds Git is inherited from base job
73 + - make coccicheck
74 + after_failure:
75 - env: Documentation
76 os: linux
77 compiler: clang