瀏覽代碼

fail if findbugs increased

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 6 年之前
父節點
當前提交
82ee8b8627
共有 1 個文件被更改,包括 6 次插入2 次删除
  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