Sha256: 5b097198e9439abba85a63f91ebe72b511049829a870e4a4c93d72076bd95190

Contents?: true

Size: 728 Bytes

Versions: 3

Compression:

Stored size: 728 Bytes

Contents

require 'rspec/core/rake_task'
require 'engine_cart/rake_task'
require 'rubocop/rake_task'

desc 'Run style checker'
RuboCop::RakeTask.new(:rubocop) do |task|
  task.fail_on_error = true
end

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

desc 'Spin up test servers and run specs'
task :spec_with_app_load do
  require 'solr_wrapper'   # necessary for rake_support to work
  require 'fcrepo_wrapper' # necessary for rake_support to work
  require 'active_fedora/rake_support'
  with_test_server do
    Rake::Task['spec'].invoke
  end
end

desc 'Generate the engine_cart and spin up test servers and run specs'
task ci: %w[rubocop engine_cart:generate] do
  puts 'running continuous integration'
  Rake::Task['spec_with_app_load'].invoke
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newspaper_works-1.0.1 tasks/newspaperworks_dev.rake
newspaper_works-1.0.0 tasks/newspaperworks_dev.rake
newspaper_works-0.1.0 tasks/newspaperworks_dev.rake