lib/travis/build/addons/coverity_scan.rb
# This method consumes the script method of the caller, calling it or the Coverity Scan
#   script depending on the TRAVIS_BRANCH env variable.
# The Coverity Scan build therefore overrides the default script, but only on the
#   coverity_scan branch.
This method consumes the script method of the caller, calling it or the Coverity Scan
script depending on the TRAVIS_BRANCH env variable.
The Coverity Scan build therefore overrides the default script, but only on the
coverity_scan branch.
This method consumes the script method of the caller calling it or the Coverity Scan script depending on the TRAVIS_BRANCH env variable . The Coverity Scan build therefore overrides the default script but only on the coverity_scan branch .
def script
          sh.raw "echo -en 'coverity_scan:start\\r'"
          sh.if "${COVERITY_VERBOSE} = 1", echo: true do
            sh.raw "set -x"
          end
          sh.set 'PROJECT_NAME', @config[:project][:name], echo: true
          set_coverity_scan_branch
          sh.if "${COVERITY_SCAN_BRANCH} = 1", echo: true do
              sh.raw "echo -e \"\033[33;1mCoverity Scan analysis selected for branch \"$TRAVIS_BRANCH\".\033[0m\""
            authorize_quota
            build_command
          end
          sh.raw "echo -en 'coverity_scan:end\\r'"
        end
def script sh . raw "echo -en 'coverity_scan:start\\r'" sh . if "${COVERITY_VERBOSE} = 1" , echo : true do sh . raw "set -x" end sh . set 'PROJECT_NAME' , @config [ :project ] [ :name ] , echo : true set_coverity_scan_branch sh . if "${COVERITY_SCAN_BRANCH} = 1" , echo : true do sh . raw "echo -e \"\033[33;1mCoverity Scan analysis selected for branch \"$TRAVIS_BRANCH\".\033[0m\"" authorize_quota build_command end sh . raw "echo -en 'coverity_scan:end\\r'" end
This method consumes the script method of the caller, calling it or the Coverity Scan
script depending on the TRAVIS_BRANCH env variable.
This method consumes the script method of the caller calling it or the Coverity Scan script depending on the TRAVIS_BRANCH env variable .