Skip to content

Commit

Permalink
Update CircleCI Ruby and Rails versions
Browse files Browse the repository at this point in the history
This gem had a particularly verbose config. This attempts to trim it
down and normalize with other gems that use engine_cart.

Re: samvera/maintenance#20
Re: samvera/maintenance#21
  • Loading branch information
botimer committed Aug 2, 2019
1 parent e260be4 commit df9286e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 149 deletions.
185 changes: 36 additions & 149 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,94 +3,47 @@ version: 2.1
orbs:
samvera: samvera/circleci-orb@0
jobs:
bundle:
bundle_lint_test:
parameters:
ruby_version:
type: string
default: 2.6.3
bundler_version:
type: string
default: 1.17.3
rails_version:
type: string
default: '5.2.3'
executor:
name: 'samvera/ruby'
name: 'samvera/ruby_fcrepo_solr'
ruby_version: << parameters.ruby_version >>
working_directory: ~/project
environment:
ENGINE_CART_RAILS_OPTIONS: --skip-git --skip-bundle --skip-listen --skip-spring --skip-yarn --skip-keeps --skip-coffee --skip-puma --skip-test
RAILS_VERSION: << parameters.rails_version >>
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
CC_TEST_REPORTER_ID: e52010675d2774ee408c14c0de08c143d0749e59beb6dd729254d1b3ea94c7b1
steps:
- samvera/cached_checkout

- samvera/bundle_for_gem:
ruby_version: << parameters.ruby_version >>
bundler_version: << parameters.bundler_version >>
project: hydra-editor
- persist_to_workspace:
root: ~/
paths:
- project/*
- project/**/*
build:
parameters:
ruby_version:
type: string
default: 2.6.3
bundler_version:
type: string
default: 1.17.3
rails_version:
type: string
default: '5.2.3'
executor:
name: 'samvera/ruby'
ruby_version: << parameters.ruby_version >>
environment:
RAILS_VERSION: << parameters.rails_version >>
NOKOGIRI_USE_SYSTEM_LIBRARIES: true
ENGINE_CART_RAILS_OPTIONS: --skip-git --skip-bundle --skip-listen --skip-spring --skip-yarn --skip-keeps --skip-action-cable --skip-coffee --skip-puma --skip-test
steps:
- attach_workspace:
at: ~/
- samvera/engine_cart_generate:
cache_key: v1-internal-test-app-{{ checksum "hydra-editor.gemspec" }}-{{ checksum "spec/test_app_templates/lib/generators/test_app_generator.rb" }}-<< parameters.rails_version >>-<< parameters.ruby_version >>
- samvera/bundle_for_gem:
ruby_version: << parameters.ruby_version >>
bundler_version: << parameters.bundler_version >>
project: hydra-editor
- persist_to_workspace:
root: ~/
paths:
- project/*
- project/**/*
test:
parameters:
ruby_version:
type: string
default: 2.6.3
bundler_version:
type: string
default: 1.17.3
executor:
name: 'samvera/ruby_fcrepo_solr'
ruby_version: << parameters.ruby_version >>
environment:
CC_TEST_REPORTER_ID: e52010675d2774ee408c14c0de08c143d0749e59beb6dd729254d1b3ea94c7b1
steps:
- attach_workspace:
at: ~/
- run:
name: "Download the Code Climate reporter"
command: |
curl -L "https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64" > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
- samvera/install_solr_core:
solr_config_path: .internal_test_app/solr/config
- samvera/engine_cart_generate:
cache_key: v5-internal-test-app-{{ checksum "hydra-editor.gemspec" }}-{{ checksum "spec/test_app_templates/lib/generators/test_app_generator.rb" }}-<< parameters.rails_version >>-<< parameters.ruby_version >>

- samvera/bundle_for_gem:
ruby_version: << parameters.ruby_version >>
bundler_version: << parameters.bundler_version >>
project: hydra-editor

- samvera/rubocop
- samvera/parallel_rspec
- run:
name: "Submit the exit code to Code Climate"
Expand All @@ -100,93 +53,27 @@ workflows:
version: 2
ci:
jobs:
- bundle:
name: "bundle_ruby2-6_rails5-2"
ruby_version: "2.6.3"
rails_version: "5.2.3"
- build:
name: "build_ruby2-6_rails5-2"
ruby_version: "2.6.3"
rails_version: "5.2.3"
requires:
- bundle_ruby2-6_rails5-2
- test:
name: "ruby2-6_rails5-2"
ruby_version: "2.6.3"
requires:
- build_ruby2-6_rails5-2
- bundle:
name: "bundle_ruby2-6_rails5-1"
ruby_version: "2.6.3"
rails_version: "5.1.7"
- build:
name: "build_ruby2-6_rails5-1"
ruby_version: "2.6.3"
rails_version: "5.1.7"
requires:
- bundle_ruby2-6_rails5-1
- test:
name: "ruby2-6_rails5-1"
ruby_version: "2.6.3"
requires:
- build_ruby2-6_rails5-1
- bundle:
name: "bundle_ruby2-5_rails5-2"
ruby_version: "2.5.5"
rails_version: "5.2.3"
- build:
name: "build_ruby2-5_rails5-2"
ruby_version: "2.5.5"
rails_version: "5.2.3"
requires:
- bundle_ruby2-5_rails5-2
- test:
name: "ruby2-5_rails5-2"
ruby_version: "2.5.5"
requires:
- build_ruby2-5_rails5-2
- bundle:
name: "bundle_ruby2-5_rails5-1"
ruby_version: "2.5.5"
rails_version: "5.1.7"
- build:
name: "build_ruby2-5_rails5-1"
ruby_version: "2.5.5"
rails_version: "5.1.7"
requires:
- bundle_ruby2-5_rails5-1
- test:
name: "ruby2-5_rails5-1"
ruby_version: "2.5.5"
requires:
- build_ruby2-5_rails5-1
- bundle:
name: "bundle_ruby2-4_rails5-2"
ruby_version: "2.4.6"
rails_version: "5.2.3"
- build:
name: "build_ruby2-4_rails5-2"
ruby_version: "2.4.6"
rails_version: "5.2.3"
requires:
- bundle_ruby2-4_rails5-2
- test:
name: "ruby2-4_rails5-2"
ruby_version: "2.4.6"
requires:
- build_ruby2-4_rails5-2
- bundle:
name: "bundle_ruby2-4_rails5-1"
ruby_version: "2.4.6"
rails_version: "5.1.7"
- build:
name: "build_ruby2-4_rails5-1"
ruby_version: "2.4.6"
rails_version: "5.1.7"
requires:
- bundle_ruby2-4_rails5-1
- test:
name: "ruby2-4_rails5-1"
ruby_version: "2.4.6"
requires:
- build_ruby2-4_rails5-1
- bundle_lint_test:
name: bundle_ruby2-6_rails5-2
ruby_version: 2.6.3
rails_version: 5.2.3
- bundle_lint_test:
name: bundle_ruby2-6_rails5-1
ruby_version: 2.6.3
rails_version: 5.1.7
- bundle_lint_test:
name: bundle_ruby2-5_rails5-2
ruby_version: 2.5.5
rails_version: 5.2.3
- bundle_lint_test:
name: bundle_ruby2-5_rails5-1
ruby_version: 2.5.5
rails_version: 5.1.7
- bundle_lint_test:
name: bundle_ruby2-4_rails5-2
ruby_version: 2.4.6
rails_version: 5.2.3
- bundle_lint_test:
name: bundle_ruby2-4_rails5-1
ruby_version: 2.4.6
rails_version: 5.1.7
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ fcrepo4-data/
fcrepo4-test-data/
jetty/
tmp/
coverage/

0 comments on commit df9286e

Please sign in to comment.