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

[PATCH] travis-ci: don't build Git for the static analysis job

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Nov 1, 2017, 11:56 UTC
Message-ID
<20171101115644.15213-1-szeder.dev@gmail.com>

The static analysis job on Travis CI builds Git ever since it was introduced in d8245bb3f (travis-ci: add static analysis build job to run coccicheck, 2017-04-11). However, Coccinelle, the only static analysis tool in use, only needs Git's source code to work and it doesn't care about built Git binaries at all.

Spare some of Travis CI's resources and don't build Git for the static analysis job unnecessarily.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
---
 .travis.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.travis.yml b/.travis.yml
index fead995ed..281f101f3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -71,7 +71,7 @@ matrix:
           packages:
           - coccinelle
       before_install:
-      # "before_script" that builds Git is inherited from base job
+      before_script:
       script: ci/run-static-analysis.sh
       after_failure:
     - env: Documentation
-- 
2.15.0.67.gb67a46776
Message 1 of 1 in “travis-ci: don't build Git for the static analysis job”
  1. travis-ci: don't build Git for the static analysis jobSZEDER Gábor, Nov 1, 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.