2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-02 03:40:16 +00:00
iceraven-browser/config/pre-push-recommended.sh
Michael Comella 25fdcb5596 [fenix] No issue: make pre-push hook assemble only one variant, run tests, build UI test.
Since it's redundant to the definition in the source, I intend to remove
the pre-push hook listed in the wiki after this merges.
2019-12-09 22:47:00 +01:00

29 lines
846 B
Bash
Executable File

#!/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 \
assembleGeckoBetaDebug \
testGeckoBetaDebug \
assembleGeckoBetaDebugAndroidTest
# Tasks omitted because they take a long time to run:
# - assembling all variants
# - unit test on all variants
# - UI tests
# - android lint (takes a long time to run)