Browse Source

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 years ago
parent
commit
050fb81a32
1 changed files with 7 additions and 1 deletions
  1. 7 1
      scripts/analysis/analysis-wrapper.sh

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

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