Sha256: 250efe9a1db8d2ad29d545f32610dc91638c91f78fae5e5050207cf15ad2deb6

Contents?: true

Size: 911 Bytes

Versions: 34

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:rubocop', 'curation_concerns:spec']

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

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

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
curation_concerns-1.4.0 Rakefile
curation_concerns-1.3.3 Rakefile
curation_concerns-1.3.2 Rakefile
curation_concerns-1.3.1 Rakefile
curation_concerns-1.3.0 Rakefile
curation_concerns-1.2.0 Rakefile
curation_concerns-1.1.2 Rakefile
curation_concerns-1.1.1 Rakefile
curation_concerns-1.1.0 Rakefile
curation_concerns-1.0.0 Rakefile
curation_concerns-1.0.0.beta10 Rakefile
curation_concerns-1.0.0.beta9 Rakefile
curation_concerns-1.0.0.beta8 Rakefile
curation_concerns-1.0.0.beta7 Rakefile
curation_concerns-1.0.0.beta6 Rakefile
curation_concerns-1.0.0.beta5 Rakefile
curation_concerns-1.0.0.beta4 Rakefile
curation_concerns-1.0.0.beta3 Rakefile
curation_concerns-1.0.0.beta2 Rakefile
curation_concerns-1.0.0.beta1 Rakefile