-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from gocardless/circle2
Migrate to CircleCI 2.0, add Ruby 2.6 support, update Rubocop
- Loading branch information
Showing
5 changed files
with
49 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,46 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/ruby:2.5.1 | ||
steps: | ||
|
||
references: | ||
steps: &steps | ||
- checkout | ||
- run: bundle install | ||
|
||
- type: cache-restore | ||
key: companies-house-rest-bundler-{{ checksum "companies-house-rest.gemspec" }} | ||
|
||
- run: gem install bundler -v 1.17 | ||
|
||
- run: bundle install --path vendor/bundle | ||
|
||
- type: cache-save | ||
key: companies-house-rest-bundler-{{ checksum "companies-house-rest.gemspec" }} | ||
paths: | ||
- vendor/bundle | ||
|
||
- type: shell | ||
command: | | ||
bundle exec rspec --profile 10 \ | ||
--format RspecJunitFormatter \ | ||
--out /tmp/test-results/rspec.xml \ | ||
--format progress \ | ||
spec | ||
- type: store_test_results | ||
path: /tmp/test-results | ||
|
||
- run: bundle exec rubocop | ||
- run: bundle exec rspec | ||
jobs: | ||
build-ruby25: | ||
docker: | ||
- image: ruby:2.5 | ||
steps: *steps | ||
build-ruby26: | ||
docker: | ||
- image: ruby:2.6 | ||
steps: *steps | ||
|
||
workflows: | ||
version: 2 | ||
tests: | ||
jobs: | ||
- build-ruby25 | ||
- build-ruby26 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
inherit_gem: | ||
gc_ruboconfig: rubocop.yml | ||
|
||
AllCops: | ||
TargetRubyVersion: 2.5 | ||
|
||
Metrics/MethodLength: | ||
Max: 15 | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters