Skip to content

Repository with code for running tests before git push using gradle

Notifications You must be signed in to change notification settings

ederfmatos-exacta/gradle-prepush-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to gradle-prepush-example 👋

Running tests before git push using Gradle

How to use

  • 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

Install

./gradlew clean build

Before Usage

chmod +x .git/hooks/pre-push

Example

Author

👤 Eder Matos

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

Repository with code for running tests before git push using gradle

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages