forked from ginlane/spree_importer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
25 lines (20 loc) · 828 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
require 'bundler'
Bundler::GemHelper.install_tasks
require 'rspec/core/rake_task'
require 'spree/testing_support/extension_rake'
RSpec::Core::RakeTask.new
task :default => [:spec]
desc 'Generates a dummy app for testing'
task :test_app do
ENV['LIB_NAME'] = 'spree_importer'
Rake::Task['extension:test_app'].invoke
sh "bundle exec rails g spree:install -auto-accept --force"
sh "bundle exec rails g spree_importer:install --auto-accept --auto-run-migrations"
end
desc "for running specs from circle"
task :circle_test_setup do
ENV['LIB_NAME'] = 'spree_importer'
Rake::Task['extension:test_app'].invoke
sh "bundle exec rails g spree:install -auto-accept --force --seed=false --sample=false"
sh "bundle exec rails g spree_importer:install --auto-accept --auto-run-migrations --seed=false --sample=false"
end