.circleci/config.yml in routemaster-drain-3.6.4 vs .circleci/config.yml in routemaster-drain-3.6.5
- old
+ new
@@ -2,55 +2,10 @@
# erb .circleci/config.yml.erb > .circleci/config.yml
version: 2
jobs:
- build_2.2.7_rails_3:
- docker:
- - image: deliveroo/multiruby
- - image: redis:3-alpine
- steps:
- - checkout
-
- - run:
- name: Select build variant (Ruby 2.2.7, rails_3)
- command: |
- rbenv local 2.2.7 ;
- gem install bundler ;
- bundle config --local gemfile $PWD/gemfiles/rails_3.gemfile
-
- - restore_cache:
- keys:
- - v2-bundle-2.2.7-rails_3-{{ .Branch }}
- - v2-bundle-2.2.7-rails_3
- - v2-bundle-2.2.7
-
- - 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: v2-bundle-2.2.7-rails_3-{{ .Branch }}
- paths:
- - ~/project/vendor/bundle
- - save_cache:
- key: v2-bundle-2.2.7-rails_3
- paths:
- - ~/project/vendor/bundle
- - save_cache:
- key: v2-bundle-2.2.7
- paths:
- - ~/project/vendor/bundle
-
build_2.3.4_rails_3:
docker:
- image: deliveroo/multiruby
- image: redis:3-alpine
steps:
@@ -58,11 +13,11 @@
- run:
name: Select build variant (Ruby 2.3.4, rails_3)
command: |
rbenv local 2.3.4 ;
- gem install bundler ;
+ gem install bundler -v '~> 1.17' ;
bundle config --local gemfile $PWD/gemfiles/rails_3.gemfile
- restore_cache:
keys:
- v2-bundle-2.3.4-rails_3-{{ .Branch }}
@@ -92,55 +47,10 @@
- save_cache:
key: v2-bundle-2.3.4
paths:
- ~/project/vendor/bundle
- build_2.2.7_rails_4:
- docker:
- - image: deliveroo/multiruby
- - image: redis:3-alpine
- steps:
- - checkout
-
- - run:
- name: Select build variant (Ruby 2.2.7, rails_4)
- command: |
- rbenv local 2.2.7 ;
- gem install bundler ;
- bundle config --local gemfile $PWD/gemfiles/rails_4.gemfile
-
- - restore_cache:
- keys:
- - v2-bundle-2.2.7-rails_4-{{ .Branch }}
- - v2-bundle-2.2.7-rails_4
- - v2-bundle-2.2.7
-
- - 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: v2-bundle-2.2.7-rails_4-{{ .Branch }}
- paths:
- - ~/project/vendor/bundle
- - save_cache:
- key: v2-bundle-2.2.7-rails_4
- paths:
- - ~/project/vendor/bundle
- - save_cache:
- key: v2-bundle-2.2.7
- paths:
- - ~/project/vendor/bundle
-
build_2.3.4_rails_4:
docker:
- image: deliveroo/multiruby
- image: redis:3-alpine
steps:
@@ -148,11 +58,11 @@
- run:
name: Select build variant (Ruby 2.3.4, rails_4)
command: |
rbenv local 2.3.4 ;
- gem install bundler ;
+ gem install bundler -v '~> 1.17' ;
bundle config --local gemfile $PWD/gemfiles/rails_4.gemfile
- restore_cache:
keys:
- v2-bundle-2.3.4-rails_4-{{ .Branch }}
@@ -193,11 +103,11 @@
- run:
name: Select build variant (Ruby 2.4.1, rails_4)
command: |
rbenv local 2.4.1 ;
- gem install bundler ;
+ gem install bundler -v '~> 1.17' ;
bundle config --local gemfile $PWD/gemfiles/rails_4.gemfile
- restore_cache:
keys:
- v2-bundle-2.4.1-rails_4-{{ .Branch }}
@@ -227,55 +137,10 @@
- save_cache:
key: v2-bundle-2.4.1
paths:
- ~/project/vendor/bundle
- build_2.2.7_rails_5:
- docker:
- - image: deliveroo/multiruby
- - image: redis:3-alpine
- steps:
- - checkout
-
- - run:
- name: Select build variant (Ruby 2.2.7, rails_5)
- command: |
- rbenv local 2.2.7 ;
- gem install bundler ;
- bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
-
- - restore_cache:
- keys:
- - v2-bundle-2.2.7-rails_5-{{ .Branch }}
- - v2-bundle-2.2.7-rails_5
- - v2-bundle-2.2.7
-
- - 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: v2-bundle-2.2.7-rails_5-{{ .Branch }}
- paths:
- - ~/project/vendor/bundle
- - save_cache:
- key: v2-bundle-2.2.7-rails_5
- paths:
- - ~/project/vendor/bundle
- - save_cache:
- key: v2-bundle-2.2.7
- paths:
- - ~/project/vendor/bundle
-
build_2.3.4_rails_5:
docker:
- image: deliveroo/multiruby
- image: redis:3-alpine
steps:
@@ -283,11 +148,11 @@
- run:
name: Select build variant (Ruby 2.3.4, rails_5)
command: |
rbenv local 2.3.4 ;
- gem install bundler ;
+ gem install bundler -v '~> 1.17' ;
bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
- restore_cache:
keys:
- v2-bundle-2.3.4-rails_5-{{ .Branch }}
@@ -328,11 +193,11 @@
- run:
name: Select build variant (Ruby 2.4.1, rails_5)
command: |
rbenv local 2.4.1 ;
- gem install bundler ;
+ gem install bundler -v '~> 1.17' ;
bundle config --local gemfile $PWD/gemfiles/rails_5.gemfile
- restore_cache:
keys:
- v2-bundle-2.4.1-rails_5-{{ .Branch }}
@@ -368,20 +233,14 @@
workflows:
version: 2
test:
jobs:
- - build_2.2.7_rails_3
-
- build_2.3.4_rails_3
- - build_2.2.7_rails_4
-
- build_2.3.4_rails_4
- build_2.4.1_rails_4
-
- - build_2.2.7_rails_5
- build_2.3.4_rails_5
- build_2.4.1_rails_5