Skip to content

Commit

Permalink
Run installer CI jobs for PR targeting Solidus 4.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
elia committed Dec 15, 2023
1 parent 55a9836 commit 6eb9a56
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,33 +269,32 @@ jobs:
ruby: "3.0"
steps:
- checkout
- when:
condition:
or:
- equal: [main, << pipeline.git.branch >>]
- equal: [v4.2, << pipeline.git.branch >>]
steps:
- libvips
- install_solidus:
flags: "--sample=false --frontend=starter --authentication=devise"
- test_page:
expected_text: "The only eCommerce platform you’ll ever need."
- run:
name: Ensure the correct PayPal is installed for SSF
command: |
cd /tmp/my_app
bundle list | grep 'solidus_paypal_commerce_platform (1.'
- install_solidus:
flags: "--sample=false --frontend=starter --authentication=devise --payment-method=stripe"
- test_page:
expected_text: "The only eCommerce platform you’ll ever need."
- install_dummy_app
- install_dummy_app:
extra_gems: "solidus_frontend"
- run:
name: "Ensure solidus_frontend installer is run"
command: |
test -f /tmp/dummy_extension/spec/dummy/config/initializers/solidus_frontend.rb
- run:
name: "Skip for Solidus older than 4.2"
command: |
ruby -I. -rcore/lib/spree/core/version.rb -e "exit Spree.solidus_gem_version >= Gem::Version.new('4.2')" ||
circleci-agent step halt
- libvips
- install_solidus:
flags: "--sample=false --frontend=starter --authentication=devise"
- test_page:
expected_text: "The only eCommerce platform you’ll ever need."
- run:
name: Ensure the correct PayPal is installed for SSF
command: |
cd /tmp/my_app
bundle list | grep 'solidus_paypal_commerce_platform (1.'
- install_solidus:
flags: "--sample=false --frontend=starter --authentication=devise --payment-method=stripe"
- test_page:
expected_text: "The only eCommerce platform you’ll ever need."
- install_dummy_app
- install_dummy_app:
extra_gems: "solidus_frontend"
- run:
name: "Ensure solidus_frontend installer is run"
command: |
test -f /tmp/dummy_extension/spec/dummy/config/initializers/solidus_frontend.rb
test_solidus:
parameters:
Expand Down

0 comments on commit 6eb9a56

Please sign in to comment.