Skip to content

Commit

Permalink
Merge pull request #44 from sue445/feature/codeclimate_orb
Browse files Browse the repository at this point in the history
Use sue445/codeclimate
  • Loading branch information
sue445 committed Jun 19, 2019
2 parents 9276c5e + ffc74f6 commit 7533698
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
@@ -1,7 +1,8 @@
version: 2.1

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

executors:
ruby:
Expand All @@ -21,27 +22,6 @@ executors:
CC_TEST_REPORTER_ID: 89b665462d69ce4c873ee8165d496c4a97b9afaaf48e375c1bc3200e4b45b1e7
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 @@ -61,7 +41,8 @@ jobs:
gemspec_name: "apple_system_status"
cache_key_prefix: "v2-bundle"
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 7533698

Please sign in to comment.