.circleci/config.yml in truemail-client-0.3.4 vs .circleci/config.yml in truemail-client-0.4.0
- old
+ new
@@ -2,31 +2,26 @@
defaults: &defaults
working_directory: ~/truemail-ruby-client
docker:
- image: cimg/ruby:<< parameters.ruby-version >>
- environment:
- CC_TEST_REPORTER_ID: 183d1173cc05e4e5dbd07ddb60a04b9c4115ed11a4bacda0e1834572eb168c51
orbs:
- ruby: circleci/ruby@1.1.3
+ ruby: circleci/ruby@1.4.0
references:
- install_bundler: &install_bundler
- run:
- name: Installing Bundler
- command: gem i bundler -v $(tail -1 Gemfile.lock | tr -d ' ')
-
restore_bundle_cache: &restore_bundle_cache
restore_cache:
keys:
- truemail-ruby-client-{{ checksum "truemail-client.gemspec" }}
bundle_install: &bundle_install
run:
name: Installing gems
- command: bundle install --path vendor/bundle
+ command: |
+ bundle config set --local path 'vendor/bundle'
+ bundle install
save_bundle_cache: &save_bundle_cache
save_cache:
key: truemail-ruby-client-{{ checksum "truemail-client.gemspec" }}
paths:
@@ -37,10 +32,16 @@
name: Installing CodeClimate test reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
+ use_compatible_gemspec: &use_compatible_gemspec
+ run:
+ name: Use compatible gemspec
+ command: |
+ cp .circleci/gemspec_compatible truemail-client.gemspec
+
jobs:
linters-ruby:
parameters:
ruby-version:
type: string
@@ -48,11 +49,10 @@
<<: *defaults
steps:
- checkout
- - <<: *install_bundler
- <<: *restore_bundle_cache
- <<: *bundle_install
- <<: *save_bundle_cache
- run:
@@ -69,11 +69,10 @@
<<: *defaults
steps:
- checkout
- - <<: *install_bundler
- <<: *restore_bundle_cache
- <<: *bundle_install
- <<: *save_bundle_cache
- <<: *install_codeclimate_reporter
@@ -104,11 +103,13 @@
type: string
docker:
- image: cimg/ruby:<< parameters.ruby-version >>
steps:
- checkout
+ - <<: *use_compatible_gemspec
- ruby/install-deps:
+ bundler-version: "2.3.5"
with-cache: false
path: './vendor/custom_bundle'
- run:
name: Running compatibility tests
command: bundle exec rspec
@@ -117,14 +118,14 @@
build_and_test:
jobs:
- linters-ruby:
matrix:
parameters:
- ruby-version: ["2.5"]
+ ruby-version: ["3.1"]
- tests-ruby:
matrix:
parameters:
- ruby-version: ["2.5"]
+ ruby-version: ["3.1"]
- compatibility-ruby:
matrix:
parameters:
- ruby-version: ["2.6", "2.7", "3.0"]
+ ruby-version: ["2.5", "2.6", "2.7", "3.0"]