Sfoglia il codice sorgente

Detect stable branches on the fly

Stable branches are 'master' or 'stable-*'.

Signed-off-by: Tim Krüger <t@timkrueger.me>
Tim Krüger 2 anni fa
parent
commit
050fb81a32
1 ha cambiato i file con 7 aggiunte e 1 eliminazioni
  1. 7 1
      scripts/analysis/analysis-wrapper.sh

+ 7 - 1
scripts/analysis/analysis-wrapper.sh

@@ -8,9 +8,15 @@
 #6: DRONE_BUILD_NUMBER
 #7: PULL_REQUEST_NUMBER
 
-stableBranch="master"
+
 repository="talk"
 
+if [[ $3 = \stable-* ]] ; then
+  stableBranch=$3
+else
+  stableBranch="master"
+fi
+
 ruby scripts/analysis/lint-up.rb $1 $2 $3
 lintValue=$?