git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v1] travis-ci: add static analysis build job to run coccicheck

From
Lars Schneider <larsxschneider@gmail.com>
Date
Apr 11, 2017, 07:26 UTC
Message-ID
<20170411072637.57369-1-larsxschneider@gmail.com>

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>
---
Notes:
    Base Ref: master
    Web-Diff: https://github.com/larsxschneider/git/commit/f191458df1
    Checkout: git fetch https://github.com/larsxschneider/git travisci/cocci-v1 && git checkout f191458df1
 .travis.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)
diff --git a/.travis.yml b/.travis.yml
index 591cc57b80..52855c806c 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

base-commit: b14f27f91770e0f99f64135348977a0ce1c7993a
-- 
2.12.2
Next: Sebastian Schuberth
Message 1 of 3 in “travis-ci: add static analysis build job to run coccicheck”
  1. travis-ci: add static analysis build job to run coccicheckLars Schneider, Apr 11, 2017
  2. Sebastian SchuberthApr 16, 2017
  3. Stefan BellerApr 18, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.