Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Fixed CI builds

Damian Legawiec6d9a77c2d7e8
diff --git a/.circleci/config.yml b/.circleci/config.yml
index a5ab482587..42d20420b0 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -24,7 +24,10 @@ commands:
- install_libvips
- run:
name: Install global dependencies
- command: bundle check || bundle install
+ command: bundle update
+ - run:
+ name: Clean old gems
+ command: bundle clean
- run:
name: Install per-project gem dependencies
command: bin/build-ci.rb install
diff --git a/core/lib/spree/testing_support/common_rake.rb b/core/lib/spree/testing_support/common_rake.rb
index 8271e5e1f9..788d65b672 100644
--- a/core/lib/spree/testing_support/common_rake.rb
+++ b/core/lib/spree/testing_support/common_rake.rb
@@ -30,13 +30,13 @@ namespace :common do
Spree::DummyGenerator.start dummy_app_args
unless skip_javascript
- system('bin/rails importmap:install turbo:install stimulus:install')
+ system('bundle exec rails importmap:install turbo:install stimulus:install')
end
# install devise if it's not the legacy user, useful for testing storefront
if args[:authentication] == 'devise' && args[:user_class] != 'Spree::LegacyUser'
- system('bin/rails g devise:install --force --auto-accept')
- system("bin/rails g devise #{args[:user_class]} --force --auto-accept")
+ system('bundle exec rails g devise:install --force --auto-accept')
+ system("bundle exec rails g devise #{args[:user_class]} --force --auto-accept")
system('rm -rf spec') # we need to cleanup factories created by devise to avoid naming conflict
end
@@ -59,7 +59,7 @@ namespace :common do
unless ENV['NO_MIGRATE']
puts 'Setting up dummy database...'
- system('bin/rails db:environment:set RAILS_ENV=test > /dev/null 2>&1')
+ system('bundle exec rails db:environment:set RAILS_ENV=test > /dev/null 2>&1')
system('bundle exec rake db:drop db:create > /dev/null 2>&1')
Spree::DummyModelGenerator.start
system('bundle exec rake db:migrate > /dev/null 2>&1')
@@ -81,7 +81,7 @@ namespace :common do
task :db_setup do |_t|
puts 'Setting up dummy database...'
- system('bin/rails db:environment:set RAILS_ENV=test > /dev/null 2>&1')
+ system('bundle exec rails db:environment:set RAILS_ENV=test > /dev/null 2>&1')
system('bundle exec rake db:drop db:create > /dev/null 2>&1')
Spree::DummyModelGenerator.start
system('bundle exec rake db:migrate > /dev/null 2>&1')