-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
35 lines (27 loc) · 813 Bytes
/
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
# encoding: utf-8
require 'yaml'
require 'rake'
require 'standalone_migrations'
StandaloneMigrations::Tasks.load_tasks
desc 'Run skeptic on all files'
task :style do
opts = YAML.load_file('skeptic.yml')
.map { |key, value| [key, (value == true ? nil : value)].compact }
.map { |key, value| "--#{key.tr('_', '-')} #{value}".strip }
.join(' ')
librbfiles = File.join(File.dirname(__FILE__), 'lib', 'bluereader', 'core', '**', '*.rb')
Dir.glob(librbfiles).each do |file|
system("skeptic #{opts} #{file}") or exit(1)
end
end
desc 'Starts watchr'
task :watch do
system 'watchr watchr.rb'
end
require 'rspec/core'
require 'rspec/core/rake_task'
desc 'Run unit specs'
RSpec::Core::RakeTask.new('unit') do |t|
# t.ruby_opts = '-w'
t.pattern = FileList['spec/**/*_spec.rb']
end