pre-push-recommended.sh (593B)
1 #!/bin/sh 2 3 # We recommend you run this as a pre-push hook: to reduce 4 # review turn-around time, we want all pushes to run tasks 5 # locally. Using this hook will guarantee your hook gets 6 # updated as the repository changes. 7 # 8 # This hook tries to run as much as possible without taking 9 # too long. 10 # 11 # You can use it by running this command from the project root: 12 # `ln -s ../../tools/pre-push-recommended.sh .git/hooks/pre-push` 13 14 # Descriptions for each gradle task below can be found in the 15 # output of `./gradlew tasks`. 16 17 ./gradlew -q \ 18 ktlint \ 19 detekt \ 20 testToolsDir