pre-push-recommended.sh (775B)
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 tests 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 ../../quality/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 ./gradlew -q \ 17 ktlint \ 18 detekt \ 19 assembleFocusDebugAndroidTest \ 20 testFocusDebugUnitTest 21 22 # Tasks omitted because they take a long time to run: 23 # - unit test on all variants 24 # - UI tests 25 # - lint (compiles all variants)