forked from arturaz/jruby-scala-collections
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathGuardfile
More file actions
28 lines (22 loc) · 788 Bytes
/
Guardfile
File metadata and controls
28 lines (22 loc) · 788 Bytes
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
require "guard-rspec-jruby"
#guard "rspec-jruby", cli: '--backtrace -t focus -t ~slow' do
# watch(%r{^spec/.+_spec\.rb$})
# watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
# watch('spec/spec_helper.rb') { "spec" }
# watch(%r{ext/target/scala-2.10/classes/.+\.class}) { "spec" }
#end
guard 'bundler' do
watch('Gemfile')
end
# Add files and commands to this file, like the example:
# watch(%r{file/path}) { `command(s)` }
#
guard 'shell' do
def exec(cmd)
puts cmd
puts `#{cmd}`
end
watch(%r{^lib/(.+)\.rb$}) {|m| exec 'mspec -g focus -G fails rubyspec' }
watch(%r{^rubyspec/(.+)\.(rb|txt)$}) {|m| exec 'mspec -g focus -G fails rubyspec' }
watch(%r{^ext/target/scala-2.10/classes/.+\.class$}) {|m| exec 'mspec -g focus -G fails rubyspec' }
end