[Buildbot-devel] Integrate Coverity static analysis tool into BuildBot

William Deegan bill at baddogconsulting.com
Wed Nov 7 20:06:13 UTC 2012


Sarah,


On Nov 6, 2012, at 11:25 AM, Tom Prince <tom.prince at ualberta.net> wrote:

> Sarah Addis <sarahaddis3 at gmail.com> writes:
> 
>> factory.addStep(Compile(command="cov-build --dir ../dirname make all"))
> 
> The preferred form would be:
> 
> factory.addStep(Compile(command=["cov-build", "--dir", "../dirname", "make", "all"))
> 
> which doesn't use the shell.
> 
>> This breaks the build with the following output:
>> 
>> /bin/sh: cov-build: command not found
> 
> Well, where is the cov-build program found, and is it in the PATH?
> 
> As long as it can be run as a program, there shouldn't be any problem
> running coverty scans in buildbot. A quick look at the documentation I
> could find for 'cov-build' suggests that it actually just generates a
> tarball to upload, and that the analysis and reports are handled
> elsewhere.

I've configured coverity in buildbot.
You'll need to make sure you set the PATH (as Tom says).
Also there can be long intervals where there's no output, and also the runtimes can be long, so you'll want to change the defaults for those values.
Take a look a the docs to find out how to do so.

-Bill



More information about the devel mailing list