Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Appraisals for Ruby 2.7, 2.7, 3.0, 3.1 #69

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 28 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# CircleCI configuration, reducing the complexity of the entire block.
# ---------------------------------------------------------------------------------------------------------------------
docker_image: &docker_image
image: 916869144969.dkr.ecr.us-east-1.amazonaws.com/customink/base-ruby-ci:2.1-v2.7
# image: 916869144969.dkr.ecr.us-east-1.amazonaws.com/customink/base-ruby-ci:2.1-v2.7
aws_auth:
aws_access_key_id: ${PRODUCTION_AWS_ACCESS_KEY_ID}
aws_secret_access_key: ${PRODUCTION_AWS_SECRET_ACCESS_KEY}
Expand All @@ -22,15 +22,18 @@ version: 2.1
commands:
bundle_install:
description: "Performs the bundler installation, relying on the CircleCI cache for performance"
parameters:
ruby-version:
type: string
steps:
- restore_cache:
keys:
- bundler-cache-{{ checksum "vertex_client.gemspec" }}
- bundler-cache-<< parameters.ruby-version >>-{{ checksum "vertex_client.gemspec" }}
- run:
name: "Bundle Install"
command: bundle install --path=.bundle
- save_cache:
key: bundler-cache-{{ checksum "vertex_client.gemspec" }}
key: bundler-cache-<< parameters.ruby-version >>-{{ checksum "vertex_client.gemspec" }}
paths:
- .bundle
rubocop:
Expand All @@ -46,9 +49,9 @@ commands:
- run:
name: "Minitest Test Suite"
command: |
cc-test-reporter before-build
# cc-test-reporter before-build
bin/test
cc-test-reporter after-build
# cc-test-reporter after-build
# ---------------------------------------------------------------------------------------------------------------------
# CircleCI Job Configuration
#
Expand All @@ -59,14 +62,19 @@ commands:
jobs:
tests:
working_directory: ~/vertex_client
parameters:
ruby-version:
type: string
docker:
- <<: *docker_image
image: 916869144969.dkr.ecr.us-east-1.amazonaws.com/customink/ruby:focal-<< parameters.ruby-version >>
environment:
RAILS_ENV: test
CC_TEST_REPORTER_ID: 88a7fd75659a6698f28c8c4c6b60c20f902e26733691b2fe449a65474f22b618
steps:
- checkout
- bundle_install
- bundle_install:
ruby-version: << parameters.ruby-version >>
- minitest
- store_test_results:
path: test/reports/
Expand All @@ -75,4 +83,18 @@ workflows:
vertex_client:
jobs:
- tests:
name: 'Ruby 2.6'
ruby-version: '2.6'
context: customink
- tests:
name: 'Ruby 2.7'
ruby-version: '2.7'
context: customink
- tests:
name: 'Ruby 3.0'
ruby-version: '3.0'
context: customink
- tests:
name: 'Ruby 3.1'
ruby-version: '3.1'
context: customink
2 changes: 1 addition & 1 deletion vertex_client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "activesupport"
spec.add_dependency "savon", ">= 2.11"
spec.add_dependency "rails"
spec.add_development_dependency "awesome_print"
spec.add_development_dependency "circuitbox"
spec.add_development_dependency "bundler"
Expand All @@ -46,7 +47,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "minitest", "~> 5.0"
spec.add_development_dependency "mocha"
spec.add_development_dependency "rake", "~> 10.0"
spec.add_development_dependency "rails"
spec.add_development_dependency "simplecov"
spec.add_development_dependency "vcr", "~> 4.0"
spec.add_development_dependency "webmock"
Expand Down