Attempt upload of CodeCov to Code Climate
This commit is contained in:
parent
4ed0a02a88
commit
55c8801926
1 changed files with 6 additions and 8 deletions
14
.travis.yml
14
.travis.yml
|
|
@ -16,6 +16,8 @@ before_install:
|
||||||
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
||||||
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
||||||
- gem install bundler -v $(tail -n 1 Gemfile.lock)
|
- gem install bundler -v $(tail -n 1 Gemfile.lock)
|
||||||
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > $CCTR
|
||||||
|
- chmod +x $CCTR
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
on_success: change
|
on_success: change
|
||||||
|
|
@ -26,20 +28,16 @@ notifications:
|
||||||
on_success: change
|
on_success: change
|
||||||
on_failure: change
|
on_failure: change
|
||||||
before_script:
|
before_script:
|
||||||
# install CodeClimate test reporter and tell it we are starting a test run
|
|
||||||
# - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > $CCTR
|
|
||||||
# - chmod +x $CCTR
|
|
||||||
# - $CCTR before-build
|
|
||||||
- RAILS_ENV=test bundle exec rake db:bootstrap --trace
|
- RAILS_ENV=test bundle exec rake db:bootstrap --trace
|
||||||
- RAILS_ENV=test bundle exec bin/rails webdrivers:chromedriver:update
|
- RAILS_ENV=test bundle exec bin/rails webdrivers:chromedriver:update
|
||||||
|
- $CCTR before-build
|
||||||
script:
|
script:
|
||||||
- "bin/travis_script.sh $TEST_SUITE"
|
- "bin/travis_script.sh $TEST_SUITE"
|
||||||
# TODO Get this working.
|
# TODO Get this working.
|
||||||
# - $CCTR format-coverage -t simplecov --output coverage/codeclimate.$SUITE.json
|
after_script:
|
||||||
# after_script:
|
|
||||||
# combine coverage from all suites, and upload3 to CodeClimate
|
# combine coverage from all suites, and upload3 to CodeClimate
|
||||||
# - $CCTR sum-coverage coverage/codeclimate.*.json | $CCTR upload-coverage
|
- $CCTR format-coverage -t simplecov --output coverage/codeclimate.$TEST_SUITE.json
|
||||||
# - $CCTR after-build --exit-code $TRAVIS_TEST_RESULT
|
- $CCTR sum-coverage coverage/codeclimate.*.json | $CCTR upload-coverage
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue