@@ -220,45 +220,46 @@ jobs:
220
220
executor : sqlite
221
221
steps :
222
222
- checkout
223
- - libvips
224
-
225
- - install_solidus : { flags: "--sample=false --frontend=starter --authentication=devise" }
226
- - test_page : { expected_text: "The only eCommerce platform you’ll ever need." }
227
- - run :
228
- name : Ensure the correct PayPal is installed for SSF
229
- command : |
230
- cd /tmp/my_app
231
- bundle list | grep 'solidus_paypal_commerce_platform (1.'
232
-
233
- - install_solidus : { flags: "--sample=false --frontend=starter --payment-method=braintree" }
234
- - test_page : { expected_text: "The only eCommerce platform you’ll ever need." }
235
- - run :
236
- name : Ensure the correct Braintree is installed for SSF
237
- command : |
238
- cd /tmp/my_app
239
- bundle list | grep 'solidus_braintree (3.'
240
-
241
- - install_solidus : { flags: "--sample=false --frontend=none --authentication=none" }
242
- - test_page : { expected_text: "<title>Ruby on Rails" }
243
-
244
- - install_solidus : { flags: "--sample=false --frontend=classic --authentication=custom" }
245
- - test_page : { expected_text: "data-hook=" }
246
- - run :
247
- name : Ensure the correct PayPal is installed for SSF
248
- command : |
249
- cd /tmp/my_app
250
- bundle list | grep 'solidus_paypal_commerce_platform (0.'
251
-
252
- - run :
253
- name : " Test `rake task: extensions:test_app`"
254
- command : |
255
- mkdir -p /tmp/dummy_extension
256
- cd /tmp/dummy_extension
257
- bundle init
258
- bundle add rails sqlite3 --skip-install
259
- bundle add solidus --path "$(ruby -e"puts File.expand_path ENV['CIRCLE_WORKING_DIRECTORY']")"
260
- export LIB_NAME=set # dummy requireable file
261
- bundle exec rake -rrails -rspree/testing_support/extension_rake -e'Rake::Task["extension:test_app"].invoke'
223
+ - when :
224
+ condition :
225
+ or :
226
+ - equal : [main, << pipeline.git.branch >>]
227
+ - equal : [v4.2, << pipeline.git.branch >>]
228
+ steps :
229
+ - libvips
230
+ - install_solidus : { flags: "--sample=false --frontend=starter --authentication=devise" }
231
+ - test_page : { expected_text: "The only eCommerce platform you’ll ever need." }
232
+ - run :
233
+ name : Ensure the correct PayPal is installed for SSF
234
+ command : |
235
+ cd /tmp/my_app
236
+ bundle list | grep 'solidus_paypal_commerce_platform (1.'
237
+ - install_solidus : { flags: "--sample=false --frontend=starter --payment-method=braintree" }
238
+ - test_page : { expected_text: "The only eCommerce platform you’ll ever need." }
239
+ - run :
240
+ name : Ensure the correct Braintree is installed for SSF
241
+ command : |
242
+ cd /tmp/my_app
243
+ bundle list | grep 'solidus_braintree (3.'
244
+ - install_solidus : { flags: "--sample=false --frontend=none --authentication=none" }
245
+ - test_page : { expected_text: "<title>Ruby on Rails" }
246
+ - install_solidus : { flags: "--sample=false --frontend=classic --authentication=custom" }
247
+ - test_page : { expected_text: "data-hook=" }
248
+ - run :
249
+ name : Ensure the correct PayPal is installed for SSF
250
+ command : |
251
+ cd /tmp/my_app
252
+ bundle list | grep 'solidus_paypal_commerce_platform (0.'
253
+ - run :
254
+ name : " Test `rake task: extensions:test_app`"
255
+ command : |
256
+ mkdir -p /tmp/dummy_extension
257
+ cd /tmp/dummy_extension
258
+ bundle init
259
+ bundle add rails sqlite3 --skip-install
260
+ bundle add solidus --path "$(ruby -e"puts File.expand_path ENV['CIRCLE_WORKING_DIRECTORY']")"
261
+ export LIB_NAME=set # dummy requireable file
262
+ bundle exec rake -rrails -rspree/testing_support/extension_rake -e'Rake::Task["extension:test_app"].invoke'
262
263
263
264
test_solidus :
264
265
parameters :
0 commit comments