Sha256: 4bdc6d4e704b3d6993471691367857563dc72d04dd157d51181c841ce44cc256

Contents?: true

Size: 661 Bytes

Versions: 19

Compression:

Stored size: 661 Bytes

Contents

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

namespace :works 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 'Start up Solr & FCRepo and run the test suite'
  task :spec do
    with_test_server do
      Rake::Task['works:rspec'].invoke
    end
  end
end

desc 'Spin up Solr & Fedora and run the test suite'
task ci: ['works:rubocop', 'works:spec']

task default: :ci

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
hydra-works-2.2.0 Rakefile
hydra-works-2.1.0 Rakefile
hydra-works-2.0.0 Rakefile
hydra-works-1.2.0 Rakefile
hydra-works-1.1.0 Rakefile
hydra-works-1.0.0 Rakefile
hydra-works-0.17.0 Rakefile
hydra-works-0.16.0 Rakefile
hydra-works-0.15.0 Rakefile
hydra-works-0.12.1 Rakefile
hydra-works-0.14.0 Rakefile
hydra-works-0.13.0 Rakefile
hydra-works-0.12.0 Rakefile
hydra-works-0.11.0 Rakefile
hydra-works-0.10.0 Rakefile
hydra-works-0.9.0 Rakefile
hydra-works-0.8.1 Rakefile
hydra-works-0.8 Rakefile
hydra-works-0.7.1 Rakefile