From a5f013ac2dd89ce850f20bc035e72a8e4fdf341c Mon Sep 17 00:00:00 2001 From: Nick Charlton Date: Sat, 8 Feb 2020 15:34:43 +0000 Subject: [PATCH] Test against Ruby 2.7 on CircleCI We need to install a specific bundler version so that we're doing the same in CI everywhere. Appraisal historically had issues with Bundler 2.0, but upgrading this would be an unrelated change. --- .circleci/config.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e785639f23..d1152c3feb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,6 +6,9 @@ commands: steps: - checkout + # Install bundler + - run: gem install bundler:1.17.3 + # Restore Cached Dependencies - restore_cache: name: Restore bundle cache @@ -70,10 +73,24 @@ jobs: POSTGRES_DB: ruby26 POSTGRES_PASSWORD: "" + ruby-27: + <<: *default_job + docker: + - image: circleci/ruby:2.7-node-browsers-legacy + environment: + PGHOST: localhost + PGUSER: administrate + RAILS_ENV: test + - image: postgres:10.1-alpine + environment: + POSTGRES_USER: administrate + POSTGRES_DB: ruby27 + POSTGRES_PASSWORD: "" workflows: version: 2 multiple-rubies: jobs: + - ruby-27 - ruby-26 - ruby-25