Kaynağa Gözat

Merge pull request #3510 from nextcloud/failOnFindBugs

Fail if findbugs increased
Andy Scherzinger 6 yıl önce
ebeveyn
işleme
6cd4f956f1
1 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. 6 2
      scripts/analysis/analysis-wrapper.sh

+ 6 - 2
scripts/analysis/analysis-wrapper.sh

@@ -116,9 +116,13 @@ else
         exit 1
     fi
 
-    if [ $lintValue -eq 2 ]; then
+    if [ ! $lintValue -eq 2 ]; then
+        exit $lintValue
+    fi
+
+    if [ $findbugsValue -eq 2 ]; then
         exit 0
     else
-        exit $lintValue
+        exit $findbugsValue
     fi
 fi