Skip to content

Commit

Permalink
Use sue445/codeclimate
Browse files Browse the repository at this point in the history
  • Loading branch information
sue445 committed Jan 1, 2020
1 parent fa3a1cd commit e8094ae
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
version: 2.1

orbs:
ruby-orbs: sue445/ruby-orbs@volatile
codeclimate: sue445/codeclimate@volatile
ruby-orbs: sue445/ruby-orbs@volatile

executors:
ruby:
Expand All @@ -26,27 +27,6 @@ executors:
CC_TEST_REPORTER_ID: d91e7c9665019f1574eb4c5a3de1547c80bc3062e3c297282f106501a3c5c694
working_directory: ~/app

commands:
with-cc-test-reporter:
description: "Run test with cc-test-reporter"
parameters:
steps:
type: steps
default: []
description: "Run steps between `before-build` and `after-build`"
steps:
- run:
name: Setup Code Climate test-reporter
command: |
# download test reporter as a static binary
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run: ./cc-test-reporter before-build
- steps: << parameters.steps >>
- run:
command: ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
when: always

jobs:
rspec:
parameters:
Expand All @@ -64,7 +44,8 @@ jobs:
with_gemfile_lock: false
gemspec_name: "itest5ch"
update_always: true
- with-cc-test-reporter:
- codeclimate/with-cc-test-reporter:
after_build_args: "--coverage-input-type simplecov"
steps:
- run: bundle exec rspec

Expand Down

0 comments on commit e8094ae

Please sign in to comment.