From d371d9ed383a0debbb15d1b2163d7f72cbda6153 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Fri, 29 Dec 2023 12:02:45 +0100 Subject: [PATCH] Do not install solidus_admin preview This is a fundamental change that we de not support right now. --- Rakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 35d2a34..de471bc 100644 --- a/Rakefile +++ b/Rakefile @@ -15,12 +15,16 @@ task default: %i[test_setup spec] desc "Setup test app" task :test_setup do solidus_version = ENV.fetch("SOLIDUS_VERSION", "4.3") + solidus_install_options = "--payment-method=none --frontend=none --authentication=none" + if solidus_version >= "4.3" + solidus_install_options += " --admin-preview=false" + end Dir.chdir("spec/dummy") do system <<~SETUP bin/rake db:environment:set db:drop && \ bin/rake gutentag:install:migrations && \ bin/rails g gutentag:migration_versions && \ - bin/rails g solidus:install --force --auto-accept --no-seed --no-sample --payment-method none --frontend none --authentication none && \ + bin/rails g solidus:install --force --auto-accept --no-seed --no-sample #{solidus_install_options} && \ bin/rails g solidus_frontend:install --force --auto-accept && \ bin/rails javascript:install:esbuild && \ bin/rails g alchemy:solidus:install --auto-accept --skip && \