Sha256: 32c5692e66a0fc790345c0ca2450cabd7eb51350e3352315b8d3db9bf3d78274
Contents?: true
Size: 809 Bytes
Versions: 3
Compression:
Stored size: 809 Bytes
Contents
require 'bundler' begin require 'spree/testing_support/extension_rake' require 'rubocop/rake_task' require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) RuboCop::RakeTask.new task default: %i(first_run rubocop spec) rescue LoadError # no rspec available end task :first_run do if Dir['spec/dummy'].empty? Rake::Task[:test_app].invoke Dir.chdir('../../') end end desc 'Generates a dummy app for testing' task :test_app do case ENV['BUNDLE_GEMFILE'] when /spree/ ENV['LIB_NAME'] = 'spree_order_reporting' when /solidus/ ENV['LIB_NAME'] = 'solidus_order_reporting' else raise 'Specify BUNDLE_GEMFILE' end Rake::Task['extension:test_app'].invoke system 'bundle exec rails g delayed_job:active_record' system 'bundle exec rake db:migrate' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree_order_reporting-0.0.3 | Rakefile |
spree_order_reporting-0.0.2 | Rakefile |
spree_order_reporting-0.0.1 | Rakefile |