Open trystant opened 8 years ago
Hello,
You should be able to run this command to disable the common
checks and the rails
checks:
$ pre-commit disable git checks common rails
Then you can enable the ci
check using:
$ pre-commit enable git checks ci
FYI The ci
check will not do anything unless you have a Rake task defined called pre_commit:ci
. You can point the pre_commit:ci
task at whatever Rake task you want like this:
https://jish.github.io/pre-commit/checks/ci/
namespace :pre_commit do
task :ci => [:test]
end
Hi,
I just found this gem, installed it in my repo, but with the following settings in place (taken from the home page), the pre-commit hook will not prevent bad ruby code from being run.
My only aim is to have the test suite run in order to guarantee that all tests pass before committing to the repo.
Here is the output of my
pre-commit list
and the
.git/hooks/pre-commit
file:If there's more info I need to add, please let me know. Also, any assistance would be appreciated. Thanks much