diff --git a/.circleci/config.yml b/.circleci/config.yml
index f17f1ec26bf..7388f031022 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -220,45 +220,46 @@ jobs:
executor: sqlite
steps:
- checkout
- - 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 --payment-method=braintree" }
- - test_page: { expected_text: "The only eCommerce platform you’ll ever need." }
- - run:
- name: Ensure the correct Braintree is installed for SSF
- command: |
- cd /tmp/my_app
- bundle list | grep 'solidus_braintree (3.'
-
- - install_solidus: { flags: "--sample=false --frontend=none --authentication=none" }
- - test_page: { expected_text: "
Ruby on Rails" }
-
- - install_solidus: { flags: "--sample=false --frontend=classic --authentication=custom" }
- - test_page: { expected_text: "data-hook=" }
- - run:
- name: Ensure the correct PayPal is installed for SSF
- command: |
- cd /tmp/my_app
- bundle list | grep 'solidus_paypal_commerce_platform (0.'
-
- - run:
- name: "Test `rake task: extensions:test_app`"
- command: |
- mkdir -p /tmp/dummy_extension
- cd /tmp/dummy_extension
- bundle init
- bundle add rails sqlite3 --skip-install
- bundle add solidus --path "$(ruby -e"puts File.expand_path ENV['CIRCLE_WORKING_DIRECTORY']")"
- export LIB_NAME=set # dummy requireable file
- bundle exec rake -rrails -rspree/testing_support/extension_rake -e'Rake::Task["extension:test_app"].invoke'
+ - 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 --payment-method=braintree" }
+ - test_page: { expected_text: "The only eCommerce platform you’ll ever need." }
+ - run:
+ name: Ensure the correct Braintree is installed for SSF
+ command: |
+ cd /tmp/my_app
+ bundle list | grep 'solidus_braintree (3.'
+ - install_solidus: { flags: "--sample=false --frontend=none --authentication=none" }
+ - test_page: { expected_text: "Ruby on Rails" }
+ - install_solidus: { flags: "--sample=false --frontend=classic --authentication=custom" }
+ - test_page: { expected_text: "data-hook=" }
+ - run:
+ name: Ensure the correct PayPal is installed for SSF
+ command: |
+ cd /tmp/my_app
+ bundle list | grep 'solidus_paypal_commerce_platform (0.'
+ - run:
+ name: "Test `rake task: extensions:test_app`"
+ command: |
+ mkdir -p /tmp/dummy_extension
+ cd /tmp/dummy_extension
+ bundle init
+ bundle add rails sqlite3 --skip-install
+ bundle add solidus --path "$(ruby -e"puts File.expand_path ENV['CIRCLE_WORKING_DIRECTORY']")"
+ export LIB_NAME=set # dummy requireable file
+ bundle exec rake -rrails -rspree/testing_support/extension_rake -e'Rake::Task["extension:test_app"].invoke'
test_solidus:
parameters: