stop duplicate minitest runs

This commit is contained in:
Mark Moser
2016-09-22 09:07:06 -05:00
parent 7774a1e3f2
commit 47d7188a2f
4 changed files with 21 additions and 14 deletions

View File

@ -72,6 +72,7 @@ end
# ESLint
guard :shell, all_on_start: true do
# TODO: Annoyingly, all files are linted twice on start/full runs. Why?
watch %r{app/assets/javascripts/*/.*} do |file|
system %(echo "ESLint:\033[32m #{file[0]}\033[0m")
system %(eslint #{file[0]})
@ -86,8 +87,11 @@ guard :rubocop, cli: %w(-D -S) do
end
guard 'brakeman', run_on_start: true, quiet: true do
watch(%r{^app/.+\.(erb|haml|rhtml|rb)$})
watch(%r{^config/.+\.rb$})
watch(%r{^lib/.+\.rb$})
watch('Gemfile')
## Lets not watch files for brakeman,
## just scan on guard start, and full runs.
#
# watch(%r{^app/.+\.(erb|haml|rhtml|rb)$})
# watch(%r{^config/.+\.rb$})
# watch(%r{^lib/.+\.rb$})
# watch('Gemfile')
end