Enables static analysis when pushing to a branch coverity_scan on github See https://scan.coverity.com/travis_ci
Signed-off-by: Mike Holmes <mike.hol...@linaro.org> --- .travis.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 0d1add3..26f9082 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,16 @@ # Copyright (c) 2016, Linaro Limited # All rights reserved. # SPDX-License-Identifier: BSD-3-Clause +# +# Please update xxxx for your coverity token and notification email if required +# pushing to github/master will run make check +# pushing to github/coverity_scan will also launch a static analysis - +env: + global: + # COVERITY_SCAN_TOKEN + # ** specific to your project ** + - secure: "xxxx" language: c compiler: clang @@ -33,3 +41,12 @@ script: - make check - make doxygen-doc - make distcheck + +addons: + coverity_scan: + project: + name: "$TRAVIS_REPO_SLUG" + notification_email: xxxx + build_command_prepend: "./bootstrap && ./configure" + build_command: "make" + branch_pattern: coverity_scan -- 2.7.4