.circleci/config.yml in routemaster-drain-3.6.8 vs .circleci/config.yml in routemaster-drain-3.7.0
- old
+ new
@@ -1,11 +1,10 @@
# To update the build configuration, edit the "builds" array below and run:
# erb .circleci/config.yml.erb > .circleci/config.yml
version: 2
jobs:
-
build_2.5_rails_5:
docker:
- image: circleci/ruby:2.4.1
- image: redis:3-alpine
steps:
@@ -17,13 +16,13 @@
gem install bundler -v '~> 1.17' ;
bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
- restore_cache:
keys:
- - v2-bundle-2.5.0-rails_5-{{ .Branch }}
- - v2-bundle-2.5.0-rails_5
- - v2-bundle-2.5.0
+ - v3-bundle-2.5.0-rails_5-{{ .Branch }}
+ - v3-bundle-2.5.0-rails_5
+ - v3-bundle-2.5.0
- run:
name: Install dependencies
command: |
bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
@@ -34,24 +33,67 @@
unset RACK_ENV &&
unset RAILS_ENV &&
bundle exec rspec
- save_cache:
- key: v2-bundle-2.5.0-rails_5-{{ .Branch }}
+ key: v3-bundle-2.5.0-rails_5-{{ .Branch }}
paths:
- ~/project/vendor/bundle
- save_cache:
- key: v2-bundle-2.5.0-rails_5
+ key: v3-bundle-2.5.0-rails_5
paths:
- ~/project/vendor/bundle
- save_cache:
- key: v2-bundle-2.5.0
+ key: v3-bundle-2.5.0
paths:
- ~/project/vendor/bundle
+ build_2.7_rails_6:
+ docker:
+ - image: circleci/ruby:2.7.4
+ - image: redis:6-alpine
+ steps:
+ - checkout
+ - run:
+ name: Install bundler
+ command: |
+ gem install bundler -v '~> 2' ;
+ bundle config --local gemfile $PWD/gemfiles/rails_6.gemfile
+
+ - restore_cache:
+ keys:
+ - bundle-2.7.4-rails_6-{{ .Branch }}
+ - bundle-2.7.4-rails_6
+ - bundle-2.7.4
+
+ - run:
+ name: Install dependencies
+ command: |
+ bundle install --jobs=3 --retry=3 --path=$PWD/vendor/bundle
+
+ - run:
+ name: Run test suite
+ command: |
+ unset RACK_ENV &&
+ unset RAILS_ENV &&
+ bundle exec rspec
+
+ - save_cache:
+ key: bundle-2.7.4-rails_6-{{ .Branch }}
+ paths:
+ - ~/project/vendor/bundle
+ - save_cache:
+ key: bundle-2.7.4-rails_6
+ paths:
+ - ~/project/vendor/bundle
+ - save_cache:
+ key: bundle-2.7.4
+ paths:
+ - ~/project/vendor/bundle
+
workflows:
version: 2
test:
jobs:
- build_2.5_rails_5
-
+ - build_2.7_rails_6