forked from pulibrary/plum
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rakefile
49 lines (40 loc) · 1.02 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically
# be available to Rake.
require 'bundler/setup'
require 'rubocop/rake_task'
require 'solr_wrapper'
require 'fcrepo_wrapper'
require 'coveralls/rake/task'
Coveralls::RakeTask.new
require File.expand_path('../config/application', __FILE__)
desc 'Run RuboCop style checker'
RuboCop::RakeTask.new(:rubocop) do |task|
task.requires << 'rubocop-rspec'
task.fail_on_error = true
end
desc 'Run ESLint style checker'
task :eslint do
puts "Running eslint..."
%(eslint "app/assets/javascripts/*.es6")
end
task spec: %i[rubocop eslint]
task :ci do
with_server 'test' do
Rake::Task['spec'].invoke
end
end
namespace :server do
desc 'Run Fedora and Solr for development environment'
task :development do
with_server 'development' do
begin
sleep
rescue Interrupt
puts "Shutting down..."
end
end
end
end
task default: :ci
Rails.application.load_tasks