summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorLars Schneider <larsxschneider@gmail.com>2017-04-11 07:26:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-04-17 00:31:50 (GMT)
commitd8245bb3fd4442dbc8da8d3b7167d48f83687992 (patch)
tree484262483675119c8b006564f2fc1940ce377ade /.travis.yml
parent49800c940790cc7465d1b03e08d472ffd8684808 (diff)
downloadgit-d8245bb3fd4442dbc8da8d3b7167d48f83687992.zip
git-d8245bb3fd4442dbc8da8d3b7167d48f83687992.tar.gz
git-d8245bb3fd4442dbc8da8d3b7167d48f83687992.tar.bz2
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>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 591cc57..52855c8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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