travis-ci: run Coccinelle static analysis with two parallel jobs
authorSZEDER Gábor <szeder.dev@gmail.com>
Mon, 23 Jul 2018 13:02:29 +0000 (15:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Jul 2018 19:08:36 +0000 (12:08 -0700)
Currently the static analysis build job runs Coccinelle using a single
'make' job. Using two parallel jobs cuts down the build job's run
time from around 10-12mins to 6-7mins, sometimes even under 6mins
(there is quite large variation between build job runtimes). More
than two parallel jobs don't seem to bring further runtime benefits.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/run-static-analysis.sh
index fe4ee4e06b1e33d3ee1cd9022df06c960dd8d75b..fa719c9ef94c205ec51eff9fc9c8a1c73a1f2378 100755 (executable)
@@ -5,6 +5,6 @@
 
 . ${0%/*}/lib-travisci.sh
 
-make coccicheck
+make --jobs=2 coccicheck
 
 save_good_tree