Explorar o código

Detect stable branches on the fly

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

Signed-off-by: Tim Krüger <t@timkrueger.me>
Tim Krüger %!s(int64=3) %!d(string=hai) anos
pai
achega
050fb81a32
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  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=$?