From 55c8801926d3c4a41638319dc2ad41b9470bf446 Mon Sep 17 00:00:00 2001 From: CactusPuppy Date: Fri, 12 Mar 2021 00:25:20 -0800 Subject: [PATCH] Attempt upload of CodeCov to Code Climate --- .travis.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index a94c68ef..6d1f206f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,6 +16,8 @@ before_install: - "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc" - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true - 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: email: on_success: change @@ -26,20 +28,16 @@ notifications: on_success: change on_failure: change 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 bin/rails webdrivers:chromedriver:update + - $CCTR before-build script: - "bin/travis_script.sh $TEST_SUITE" # 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 - # - $CCTR sum-coverage coverage/codeclimate.*.json | $CCTR upload-coverage - # - $CCTR after-build --exit-code $TRAVIS_TEST_RESULT + - $CCTR format-coverage -t simplecov --output coverage/codeclimate.$TEST_SUITE.json + - $CCTR sum-coverage coverage/codeclimate.*.json | $CCTR upload-coverage env: global: