Last active
November 18, 2019 12:59
-
-
Save rogood/2e875cefcebe96f168a9be2526032885 to your computer and use it in GitHub Desktop.
Flutter Pre-Push Hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| flutter analyze | |
| if [ $? -ne 0 ]; then | |
| exit 1 | |
| fi | |
| flutter test | |
| if [ $? -ne 0 ]; then | |
| exit 1 | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment