Sha256: fb51967d8ad86fabe12d51f0420b4fda29308c00883c2224da20f078249988e4

Contents?: true

Size: 620 Bytes

Versions: 12

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

require 'bundler'

Bundler::GemHelper.install_tasks

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 spec) # TODO: add rubocop
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
  ENV['LIB_NAME'] = 'solidus_seo'
  Rake::Task['extension:test_app'].invoke
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
solidus_seo-1.1.2 Rakefile
solidus_seo-1.1.1 Rakefile
solidus_seo-1.1.0 Rakefile
solidus_seo-1.0.13 Rakefile
solidus_seo-1.0.12 Rakefile
solidus_seo-1.0.11 Rakefile
solidus_seo-1.0.10 Rakefile
solidus_seo-1.0.8 Rakefile
solidus_seo-1.0.7 Rakefile
solidus_seo-1.0.2 Rakefile
solidus_seo-1.0.1 Rakefile
solidus_seo-1.0.0 Rakefile