Skip to content

Commit

Permalink
Merge pull request #4887 from solidusio/backport/v3.3/pr-4880
Browse files Browse the repository at this point in the history
[v3.3] Merge pull request #4880 from nebulab/waiting-for-dev/testing_events_on_ci_fix
  • Loading branch information
waiting-for-dev authored Jan 30, 2023
2 parents 88592ef + 3338e66 commit 2c05ab4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,17 +263,17 @@ jobs:
paperclip:
type: boolean
default: true
legacy:
type: string
default: "0"
legacy_events:
type: boolean
default: false
executor:
name: << parameters.database >>
ruby: << parameters.ruby >>
parallelism: &parallelism 3
environment:
DISABLE_ACTIVE_STORAGE: << parameters.paperclip >>
RAILS_VERSION: "~> << parameters.rails >>"
USE_LEGACY_EVENTS: << parameters.legacy >>
USE_LEGACY_EVENTS: << parameters.legacy_events >>
BUILDKITE_ANALYTICS_EXECUTION_NAME_PREFIX: "(<< parameters.ruby >>:<< parameters.rails >>:<< parameters.database >>:<< parameters.paperclip >>)"
steps:
- setup
Expand Down Expand Up @@ -333,15 +333,15 @@ workflows:
# https://www.fastruby.io/blog/ruby/rails/versions/compatibility-table.html.
- test_solidus:
context: slack-secrets
name: &name "test-rails-<<matrix.rails>>-ruby-<<matrix.ruby>>-<<matrix.database>>-<<#matrix.paperclip>>paperclip<</matrix.paperclip>><<^matrix.paperclip>>activestorage<</matrix.paperclip>>"
matrix: { parameters: { rails: ['7.0'], ruby: ['3.1', '3.2'], database: ['mysql', 'sqlite', 'postgres'], paperclip: [true, false] } }
name: &name "test-rails-<<matrix.rails>>-ruby-<<matrix.ruby>>-<<matrix.database>>-<<#matrix.paperclip>>paperclip<</matrix.paperclip>><<^matrix.paperclip>>activestorage<</matrix.paperclip>><<#matrix.legacy_events>>-legacy_events<</matrix.legacy_events>>"
matrix: { parameters: { rails: ['7.0'], ruby: ['3.1', '3.2'], database: ['mysql', 'sqlite', 'postgres'], paperclip: [true, false], legacy_events: [false] } }
- test_solidus:
context: slack-secrets
name: *name
matrix: { parameters: { rails: ['6.1'], ruby: ['2.7', '3.0', '3.1'], database: ['sqlite'], paperclip: [false] } }
matrix: { parameters: { rails: ['6.1'], ruby: ['2.7', '3.0', '3.1'], database: ['sqlite'], paperclip: [false], legacy_events: [false] } }
- test_solidus:
context: slack-secrets
name: *name
matrix: { parameters: { rails: ['6.0'], ruby: ['2.7'], database: ['sqlite'], paperclip: [true] } }
matrix: { parameters: { rails: ['6.0'], ruby: ['2.7'], database: ['sqlite'], paperclip: [true], legacy_events: [true] } }
- dev_tools:
context: slack-secrets
2 changes: 1 addition & 1 deletion core/lib/spree/testing_support/dummy_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class Application < ::Rails::Application
Spree.user_class = 'Spree::LegacyUser'
Spree.load_defaults(Spree.solidus_version)
Spree.config do |config|
config.use_legacy_events = ENV['USE_LEGACY_EVENTS'].present?
config.use_legacy_events = (ENV['USE_LEGACY_EVENTS'] == 'true')

if ENV['DISABLE_ACTIVE_STORAGE']
config.image_attachment_module = 'Spree::Image::PaperclipAttachment'
Expand Down

0 comments on commit 2c05ab4

Please sign in to comment.