Skip to content

Commit

Permalink
Add build for Ruby 2.7 and Rails 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
elliterate authored Apr 21, 2021
1 parent 0b7cdc2 commit 6336059
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: 2.1
jobs:
test:
parameters:
bundler_version:
type: 'string'
gemfile:
type: 'string'
default: 'Gemfile'
ruby_version:
type: 'string'
docker:
- image: circleci/ruby:<< parameters.ruby_version >>
auth:
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_PASSWORD
environment:
BUNDLE_GEMFILE: << parameters.gemfile >>
steps:
- checkout
- run:
name: Install Ruby dependencies
command: |
gem install bundler -v '<< parameters.bundler_version >>'
bundle _<< parameters.bundler_version >>_ install
- run:
name: Run tests
command: bundle _<< parameters.bundler_version >>_ exec rake
workflows:
ruby-2.7-rails-3.2:
jobs:
- test:
context:
- docker-hub-authentication
- rails-lts-authentication
bundler_version: '1.17.3'
gemfile: 'gemfiles/Gemfile.ruby27.rails32'
ruby_version: '2.7.3'
9 changes: 9 additions & 0 deletions gemfiles/Gemfile.ruby27.rails32
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
source 'https://rubygems.org'

gem 'rails', '~> 3.2.22.21', source: 'https://gems.railslts.com'

gem 'activerecord-jdbcsqlite3-adapter', platform: :jruby
gem 'sqlite3', '~> 1.4.2'
gem 'test-unit', '~> 3.0'

gemspec path: '../'

0 comments on commit 6336059

Please sign in to comment.