Switch to using Codacy for code coverage (following OSEM example)
This commit is contained in:
parent
89149d53d6
commit
d8168559be
2 changed files with 4 additions and 10 deletions
12
.travis.yml
12
.travis.yml
|
|
@ -16,8 +16,6 @@ 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
|
||||
|
|
@ -30,15 +28,11 @@ notifications:
|
|||
before_script:
|
||||
- RAILS_ENV=test bundle exec rake db:bootstrap --trace
|
||||
- RAILS_ENV=test bundle exec bin/rails webdrivers:chromedriver:update
|
||||
- $CCTR before-build
|
||||
- bash <(curl -Ls https://coverage.codacy.com/get.sh) download
|
||||
script:
|
||||
- "bin/travis_script.sh $TEST_SUITE"
|
||||
# TODO Get this working.
|
||||
after_script:
|
||||
# combine coverage from all suites, and upload3 to CodeClimate
|
||||
- $CCTR format-coverage -t simplecov --output coverage/codeclimate.$TEST_SUITE.json
|
||||
- $CCTR sum-coverage coverage/codeclimate.*.json
|
||||
- if [[ "$TRAVIS_TEST_RESULT" == 0 ]]; then $CCTR upload-coverage; fi
|
||||
after_success:
|
||||
- - bash <(curl -Ls https://coverage.codacy.com/get.sh)
|
||||
|
||||
env:
|
||||
global:
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
### Spring 2021 Student Project
|
||||
[](https://travis-ci.com/CactusPuppy/snapcon)
|
||||
[](https://codeclimate.com/github/CactusPuppy/snapcon/maintainability)
|
||||
[](https://codeclimate.com/github/CactusPuppy/snapcon/test_coverage)
|
||||
[](https://www.codacy.com/gh/CactusPuppy/snapcon/dashboard?utm_source=github.com&utm_medium=referral&utm_content=CactusPuppy/snapcon&utm_campaign=Badge_Coverage)
|
||||
[](https://hakiri.io/github/CactusPuppy/snapcon/master)
|
||||
[](https://depfu.com/github/CactusPuppy/snapcon?project_id=22682)
|
||||
[](http://dashboard.bluejay.governify.io/dashboard/script/dashboardLoader.js?dashboardURL=https://reporter.bluejay.governify.io/api/v4/dashboards/tpa-CS169L-GH-CactusPuppy_snapcon/main)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue