Merge branch 'ls/travis-coccicheck'
authorJunio C Hamano <gitster@pobox.com>
Wed, 26 Apr 2017 06:39:04 +0000 (15:39 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Apr 2017 06:39:04 +0000 (15:39 +0900)
Travis CI learns to run coccicheck.

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

1  2 
.travis.yml
diff --combined .travis.yml
index c757a111ce3ec59f503274fd13d9191c0c70a0fa,52855c806cf25788efb2b41b010a42a3ade53f7a..297b0bca979d818faec64791ca5167dbd7b50e86
@@@ -39,17 -39,6 +39,17 @@@ env
  
  matrix:
    include:
 +    - env: Windows
 +      os: linux
 +      compiler:
 +      addons:
 +      before_install:
 +      before_script:
 +      script:
 +        - >
 +          test "$TRAVIS_REPO_SLUG" != "git/git" ||
 +          ci/run-windows-build.sh $TRAVIS_BRANCH $(git rev-parse HEAD)
 +      after_failure:
      - env: Linux32
        os: linux
        services:
          # 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