summaryrefslogtreecommitdiffstats
path: root/mobile/android/android-components/tools/pre-push-recommended.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/android/android-components/tools/pre-push-recommended.sh')
-rwxr-xr-xmobile/android/android-components/tools/pre-push-recommended.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/mobile/android/android-components/tools/pre-push-recommended.sh b/mobile/android/android-components/tools/pre-push-recommended.sh
new file mode 100755
index 0000000000..8e244ed73e
--- /dev/null
+++ b/mobile/android/android-components/tools/pre-push-recommended.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# We recommend you run this as a pre-push hook: to reduce
+# review turn-around time, we want all pushes to run tasks
+# locally. Using this hook will guarantee your hook gets
+# updated as the repository changes.
+#
+# This hook tries to run as much as possible without taking
+# too long.
+#
+# You can use it by running this command from the project root:
+# `ln -s ../../tools/pre-push-recommended.sh .git/hooks/pre-push`
+
+# Descriptions for each gradle task below can be found in the
+# output of `./gradlew tasks`.
+
+./gradlew -q \
+ ktlint \
+ detekt \
+ testToolsDir