Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Update CircleCI config to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ktroutner committed Oct 8, 2020
1 parent c2e1c2e commit c1330fe
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 11 deletions.
42 changes: 42 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
version: 2.1

executors:
custom:
docker:
- image: circleci/ruby:2.4
environment:
- CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
- CIRCLE_TEST_REPORTS: /tmp/circleci-test-results

commands:
setup:
steps:
- checkout
- run: bundle install
report_coverage:
steps:
- run:
name: Run coverage reporter
command: |
bundle exec rake rubycritic
bundle exec yard doc -o $CIRCLE_ARTIFACTS/doc
bundle exec rake circleci:report_coverage
jobs:
tests:
executor: custom
steps:
- setup
- run:
name: Run rspec
command: bundle exec rspec --format progress --require rspec_junit_formatter --format RspecJunitFormatter -o $CIRCLE_TEST_REPORTS/rspec/junit.xml
- run:
name: Run rubocop
command: bundle exec rubocop
- report_coverage

workflows:
version: 2
tests:
jobs:
- tests
11 changes: 0 additions & 11 deletions circle.yml

This file was deleted.

0 comments on commit c1330fe

Please sign in to comment.