1

I have made a public project on Github and I want to connect it to Coverity by Travis. It's mod to minecraft with forge.

My .treavis.yml looks like that:

    language: java
jdk:
  - openjdk7
  - oraclejdk7

before_install:
 - chmod +x gradlew

install: ./gradlew setupCIWorkspace -S
script: ./gradlew build -S

env:
 global:
   - secure: "XXX"

addons:
  coverity_scan:
    project:
      name: "Group/xxxx"
    notification_email: a@mail
    build_command_prepend: "./gradlew setupCIWorkspace -S"
    build_command: "./gradlew build -S"
    branch_pattern: coverity_scan

branches:
  only:
    - master
    - coverity-scan

Travis looks like working fine.

I followed tutorial on Coverity but it seems to not exchanging data.

Have I forgot something?

Levvy
  • 1,100
  • 1
  • 10
  • 21
  • Did you make it work? – gkiko Nov 04 '14 at 19:01
  • I give up with that, because it's not fully free. I use now my own jenkins server with pmd and findbugs. – Levvy Nov 05 '14 at 23:04
  • Could you please read my problem and tell if my plan will work? http://stackoverflow.com/questions/26759088/run-coverity-scan-for-every-travis-pull-request-build – gkiko Nov 06 '14 at 04:49

1 Answers1

0

You have to replace "XXX" by your COVERITY_SCAN_TOKEN.

Your token can be found in your project from your dashboard

Scan coverity documentation about Travis CI

Richard Dally
  • 1,432
  • 2
  • 21
  • 38