Sha256: 4861ba01fc62bcec231b880ebe5d7a594b909d0a28bdbacfa824b300f9ed3648

Contents?: true

Size: 911 Bytes

Versions: 18

Compression:

Stored size: 911 Bytes

Contents

require 'bundler/setup'
require 'rspec/core/rake_task'
require 'engine_cart/rake_task'
require 'rubocop/rake_task'
require 'solr_wrapper'
require 'fcrepo_wrapper'
require 'active_fedora/rake_support'

Dir.glob('tasks/*.rake').each { |r| import r }

Bundler::GemHelper.install_tasks

namespace :curation_concerns do
  desc 'Run style checker'
  RuboCop::RakeTask.new(:rubocop) do |task|
    task.requires << 'rubocop-rspec'
    task.fail_on_error = true
  end

  RSpec::Core::RakeTask.new(:rspec)

  desc 'Run test suite'
  task :spec do
    with_test_server do
      Rake::Task['curation_concerns:rspec'].invoke
    end
  end
end

desc 'Run test suite and style checker'
task spec: ['curation_concerns:spec']

desc 'Spin up Solr & Fedora and run the test suite'
task ci: ['curation_concerns:rubocop', 'engine_cart:generate'] do
  Rake::Task['spec'].invoke
end

task clean: 'engine_cart:clean'
task default: :ci

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 Rakefile
curation_concerns-1.7.7 Rakefile
curation_concerns-2.0.0 Rakefile
curation_concerns-2.0.0.rc2 Rakefile
curation_concerns-1.7.6 Rakefile
curation_concerns-1.7.5 Rakefile
curation_concerns-1.7.4 Rakefile
curation_concerns-1.7.3 Rakefile
curation_concerns-1.7.2 Rakefile
curation_concerns-2.0.0.rc1 Rakefile
curation_concerns-1.7.1 Rakefile
curation_concerns-1.7.0 Rakefile
curation_concerns-1.7.0.beta1 Rakefile
curation_concerns-1.6.3 Rakefile
curation_concerns-1.6.2 Rakefile
curation_concerns-1.6.1 Rakefile
curation_concerns-1.6.0 Rakefile
curation_concerns-1.5.0 Rakefile