wecodemore / grunt-githooks

A Grunt plugin to help bind Grunt tasks to Git hooks
https://npmjs.org/package/grunt-githooks
MIT License
317 stars 24 forks source link

Git pre-push with a lot of operation go to timeout #66

Closed ricByte closed 6 years ago

ricByte commented 7 years ago

Hi,

i use this plugin to run tests before push to the GitHub repository. I have some task like jshint and clean too. When i try to push something git open the connection with GItHub and then run all commands(tests, jshint, etc...). So with all of that operations the connection go timeout and i can't push. I don't know how you can reproduce it. You know why? There are some tricks to prevent that?

regards Riccardo

franz-josef-kaiser commented 7 years ago

@ricByte You probably have to find a way to split your files. Another way around it might be to use a CI service like CircleCI, TravisCI or CodeShip, who have stronger machines than you have. But this also means using different hooks so it will run before merging or in other cases.