Closed bchretien closed 9 years ago
For those interested, this can be achieved like this when using the jrl-cmakemodules
(here for roboptim-core):
addons:
coverity_scan:
project:
name: "roboptim/roboptim-core"
description: "Build submitted via Travis CI"
notification_email: roboptim@googlegroups.com
build_command_prepend: ". .travis/common.sh && mkdir coverity && cd coverity && cmake .."
build_command: "make"
branch_pattern: coverity_scan
The script
entry should also be updated:
- if [ "${COVERITY_SCAN_BRANCH}" != "1" ]; then ./.travis/run build; fi
(note that ${COVERITY_SCAN_BRANCH}
may not exist on forks)
Thanks a lot Benjamin. It is very useful as usual.
Apparently, there is now limits on the number of coverity checks per day/week:
It is suggested to create a
coverity_scan
branch, and only run the analysis every now and then:As for the Travis CI integration, I guess we need to remove the support from
jrl-travis
and follow the guidelines. We should probably check whether the current build is a coverity scan and process accordingly, since it may fail because of the scan frequency restriction.