Permalink
Browse files

move Guardfile to config and symlink

Since we don't want to watch the whole project dir,
we move Guardfile to config/ and watch config so
reevaluating works.
  • Loading branch information...
e2 committed Nov 26, 2014
1 parent 93bac46 commit b5d4b7d0b3aecef99216e350155b57696658b73a
Showing with 1 addition and 33 deletions.
  1. +0 −33 Guardfile
  2. +1 −0 Guardfile
View
@@ -1,33 +0,0 @@
-group :specs, halt_on_fail: true do
- guard :rspec, cmd: "bundle exec rspec", failed_mode: :keep do
- watch(%r{^spec/.+_spec\.rb$})
- watch(%r{^(lib/.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
- watch("lib/guard/notifier.rb") { "spec/guard/notifiers" }
- watch("lib/guard/interactor.rb") { "spec/guard/commands" }
- watch(%r{^lib/guard/(guard|plugin).rb$}) { "spec/guard/plugin" }
- watch("spec/spec_helper.rb") { "spec" }
- end
-
- guard :rubocop, all_on_start: false, cli: "--rails" do
- watch(%r{.+\.rb$}) { |m| m[0] }
- watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
- end
-
- guard "cucumber", keep_failed: true, all_on_start: false do
- watch(%r{^features/.+\.feature$})
- watch(%r{^features/support/.+$}) { "features" }
- watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |m|
- Dir[File.join("**/#{m[1]}.feature")][0] || "features"
- end
- end
-end
-
-if !defined?(JRUBY_VERSION)
- if ENV["CI"] != "true"
- group :docs do
- guard :ronn do
- watch(%r{^man/.+\.ronn?$})
- end
- end
- end
-end
View

0 comments on commit b5d4b7d

Please sign in to comment.