Browse Source

chore: disable flutter analyze when push

appflowy 2 years ago
parent
commit
8511829c42
1 changed files with 7 additions and 15 deletions
  1. 7 15
      .githooks/pre-push

+ 7 - 15
.githooks/pre-push

@@ -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"