tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Recommended-pre-push-hook.md (954B)


Recommended pre-push hook

If you want to reduce your PR turn-around time, I'd recommend adding a pre-push hook: this script will stop a push if the unit tests or linters fail, finding the failures before it hits TaskCluster (which takes forever to dig through the logs):

#!/bin/sh

./gradlew -q \
        checkstyle \
        ktlint \
        pmd \
        detektCheck \
        app:assembleFocusArmDebug


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

To use it:

  1. Sessions are switched by displaying a new BrowserFragment for a different Session objeà
  2. Sessions are switched by displaying a new BrowserFragment for a different Session objeà

And it will run before pushes. Notes: