Skip to content

Commit

Permalink
Do not install solidus_admin preview
Browse files Browse the repository at this point in the history
This is a fundamental change that we de not support
right now.
  • Loading branch information
tvdeyen committed Dec 29, 2023
1 parent baf2204 commit d371d9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit d371d9e

Please sign in to comment.