Revision control

Copy as Markdown

#!/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`.
time ./gradlew --quiet \
checkstyle \
ktlint \
pmd \
detekt \
verifyWebViewCount \
assembleAmazonWebViewDebugAndroidTest \
testAmazonWebViewDebug
# Tasks omitted because they take a long time to run:
# - unit test on all variants
# - android lint
# - androidTest tests (on-device: UI & integration)