Merge pull request #747 from AppFlowy-IO/feat/disable_push_hook_flutter_analyzer

chore: disable flutter analyze when push
This commit is contained in:
Nathan.fooo 2022-07-31 20:30:14 +08:00 committed by GitHub
commit dda8c57823
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,21 +24,13 @@ if [[ `git status --porcelain` ]]; then
exit 1
fi
printMessage "Running the Flutter analyzer"
flutter analyze
if [ $? -ne 0 ]; then
printError "Flutter analyzer error"
exit 1
fi
printMessage "Finished running the Flutter analyzer"
#printMessage "Running unit tests"
#flutter test
#
#printMessage "Running the Flutter analyzer"
#flutter analyze
#
#if [ $? -ne 0 ]; then
# printf "\e[31;1m%s\e[0m\n" 'Unit tests error'
# printError "Flutter analyzer error"
# exit 1
#fi
#printf "\e[33;1m%s\e[0m\n" 'Finished running unit tests'
#
#printMessage "Finished running the Flutter analyzer"