Sha256: ca5dfcae08cedc10b43eb2ba4946b95e75897e56a3f3c315420cd3d47cc117ed

Contents?: true

Size: 839 Bytes

Versions: 5

Compression:

Stored size: 839 Bytes

Contents

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

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

desc 'Run specs and style checker'
task :spec do
  RSpec::Core::RakeTask.new(:spec)
end

desc 'Spin up test servers and run specs'
task :spec_with_app_load  do
  reset_statefile! if ENV['TRAVIS'] == 'true'
  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: ['rubocop', 'engine_cart:generate'] do
  puts 'running continuous integration'
  Rake::Task['spec_with_app_load'].invoke
end

 def reset_statefile!
   FileUtils.rm_f('/tmp/minter-state')
 end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sufia-7.2.0 tasks/sufia-dev.rake
sufia-7.1.0 tasks/sufia-dev.rake
sufia-7.0.0 tasks/sufia-dev.rake
sufia-7.0.0.rc2 tasks/sufia-dev.rake
sufia-7.0.0.rc1 tasks/sufia-dev.rake