.circleci/config.yml in ddtrace-0.30.1 vs .circleci/config.yml in ddtrace-0.31.0
- old
+ new
@@ -118,10 +118,15 @@
steps:
- restore_cache:
keys:
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundled-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-repo-<<parameters.ruby_version>>-{{ .Environment.CIRCLE_SHA1 }}'
+ - restore_cache:
+ keys:
+ - bundle-{{ .Environment.CIRCLE_CACHE_VERSION }}-<<parameters.ruby_version>>-{{ checksum "lib/ddtrace/version.rb" }}-{{ .Branch }}-{{ checksum "Gemfile" }}-{{ checksum "Appraisals" }}-{{ checksum "ddtrace.gemspec" }}
+ - bundle-{{ .Environment.CIRCLE_CACHE_VERSION }}-<<parameters.ruby_version>>-{{ checksum "lib/ddtrace/version.rb" }}-{{ .Branch }}-
+ - bundle-{{ .Environment.CIRCLE_CACHE_VERSION }}-<<parameters.ruby_version>>-{{ checksum "lib/ddtrace/version.rb" }}
- *step_init_bundle_checksum
- restore_cache:
keys:
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
- *step_bundle_install
@@ -137,10 +142,14 @@
- /app
- save_cache:
key: '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-<<parameters.ruby_version>>-{{ checksum ".circleci/bundle_checksum" }}'
paths:
- /usr/local/bundle
+ - save_cache:
+ key: bundle-{{ .Environment.CIRCLE_CACHE_VERSION }}-<<parameters.ruby_version>>-{{ checksum "lib/ddtrace/version.rb" }}-{{ .Branch }}-{{ checksum "Gemfile" }}-{{ checksum "Appraisals" }}-{{ checksum "ddtrace.gemspec" }}-{{ checksum ".circleci/bundle_checksum" }}'
+ paths:
+ - /usr/local/bundle
test:
<<: *job_defaults
parameters:
ruby_version:
description: Ruby version
@@ -284,10 +293,14 @@
image: marcotc/docker-library:ddtrace_rb_2_5_6
- &config-2_6
<<: *filters_all_branches_and_tags
ruby_version: '2.6'
image: marcotc/docker-library:ddtrace_rb_2_6_4
+ - &config-2_7
+ <<: *filters_all_branches_and_tags
+ ruby_version: '2.7'
+ image: marcotc/docker-library:ddtrace_rb_2_7_0
workflows:
version: 2
build-and-test:
jobs:
@@ -386,25 +399,40 @@
- orb/test:
<<: *config-2_6
name: test-2.6
requires:
- build-2.6
+ - orb/checkout:
+ <<: *config-2_7
+ name: checkout-2.7
+ - orb/build:
+ <<: *config-2_7
+ name: build-2.7
+ requires:
+ - checkout-2.7
+ - orb/test:
+ <<: *config-2_7
+ name: test-2.7
+ requires:
+ - build-2.7
- "deploy prerelease Gem":
<<: *filters_all_branches_and_tags
requires:
- test-2.0
- test-2.1
- test-2.2
- test-2.3
- test-2.4
- test-2.5
- test-2.6
+ - test-2.7
- "deploy release":
<<: *filters_only_release_tags
requires:
- test-2.0
- test-2.1
- test-2.2
- test-2.3
- test-2.4
- test-2.5
- test-2.6
+ - test-2.7