Running tests before git push using Gradle
- Create folder "hooks" in your project root
- Create file "pre-push" to "hooks" folder
- Paste the following code in your "build.gradle"
task installGitHooks(type: Copy) {
"cp hooks/pre-push .git/hooks".execute()
"chmod +x ./git/hooks/pre-push".execute()
}
clean.dependsOn installGitHooks
./gradlew clean build
chmod +x .git/hooks/pre-push
👤 Eder Matos
- Website: https://www.medium.ederfmatos.com
- Github: @ederfmatos
- LinkedIn: @https://www.linkedin.com/in/ederfmatos/
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator