summaryrefslogtreecommitdiffstats
path: root/mobile/android/focus-android/quality/pre-push-recommended.sh
blob: cbc1f6acd4340ec2b221895709f5e624877279dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

# We recommend you run this as a pre-push hook: to reduce
# review turn-around time, we want all pushes to run tests
# 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 ../../quality/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 \
        assembleFocusDebugAndroidTest \
        testFocusDebugUnitTest

# Tasks omitted because they take a long time to run:
# - unit test on all variants
# - UI tests
# - lint (compiles all variants)