Skip to content

Commit

Permalink
travis: Only report to Code Climate on *.1 jobs
Browse files Browse the repository at this point in the history
Apparently `cc-test-reporter` can't handle posting more than one report
for the same commit otherwise. Builds for the previous commit from #89:

  https://travis-ci.org/mbland/custom-links/builds/257918557
  https://travis-ci.org/mbland/custom-links/builds/257918579
  • Loading branch information
mbland committed Jul 26, 2017
1 parent bbc5c33 commit 718f3d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ before_install:
- sh -e /etc/init.d/xvfb start
- export PATH=$PWD/node_modules/phantomjs-prebuilt/lib/phantom/bin:$PATH
- npm install -g npm@^5.0.1
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- if [[ ( "$TRAVIS_PULL_REQUEST" != 'false' || "$TRAVIS_BRANCH" == 'master' ) && "$TRAVIS_JOB_NUMBER" =~ [.]1$ ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; chmod +x ./cc-test-reporter; fi
script:
- "./go setup"
env:
Expand Down

0 comments on commit 718f3d1

Please sign in to comment.