Switch to using Codacy for code coverage (following OSEM example)
This commit is contained in:
parent
1936e43735
commit
fd0931f9c2
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"
|
- "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
|
||||||
|
|
@ -30,15 +28,11 @@ notifications:
|
||||||
before_script:
|
before_script:
|
||||||
- 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
|
- bash <(curl -Ls https://coverage.codacy.com/get.sh) download
|
||||||
script:
|
script:
|
||||||
- "bin/travis_script.sh $TEST_SUITE"
|
- "bin/travis_script.sh $TEST_SUITE"
|
||||||
# TODO Get this working.
|
after_success:
|
||||||
after_script:
|
- - bash <(curl -Ls https://coverage.codacy.com/get.sh)
|
||||||
# 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
|
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
### Spring 2021 Student Project
|
### Spring 2021 Student Project
|
||||||
[](https://travis-ci.com/CactusPuppy/snapcon)
|
[](https://travis-ci.com/CactusPuppy/snapcon)
|
||||||
[](https://codeclimate.com/github/CactusPuppy/snapcon/maintainability)
|
[](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://hakiri.io/github/CactusPuppy/snapcon/master)
|
||||||
[](https://depfu.com/github/CactusPuppy/snapcon?project_id=22682)
|
[](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)
|
[](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