Skip to content

Commit d8245bb

Browse files
larsxschneidergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 49800c9 commit d8245bb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ matrix:
6060
# Use the following command to debug the docker build locally:
6161
# $ docker run -itv "${PWD}:/usr/src/git" --entrypoint /bin/bash daald/ubuntu32:xenial
6262
# 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:
6375
- env: Documentation
6476
os: linux
6577
compiler: clang

0 commit comments

Comments
 (0)