[gjs: 2/3] CI: linter don't compare if in a stable branch



commit 5e5b69286ba3c051c9b114ac6b8712414fc734af
Author: Claudio André <claudioandre br gmail com>
Date:   Sun May 6 22:04:49 2018 -0300

    CI: linter don't compare if in a stable branch
    
    In long-lived stable branches don't compare against anything.
    
    Closes #156.

 test/test-ci.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/test/test-ci.sh b/test/test-ci.sh
index 7dc741e2..d2fd9a23 100755
--- a/test/test-ci.sh
+++ b/test/test-ci.sh
@@ -60,9 +60,9 @@ function do_Build_Package_Dependencies(){
 
 function do_Get_Upstream_Master(){
 
-    if [[ "$CI_BUILD_REF_SLUG" == "master" && "$CI_PROJECT_PATH_SLUG" == "gnome-gjs" ]]; then
+    if [[ "$CI_PROJECT_PATH_SLUG" == "gnome-gjs" && ("$CI_BUILD_REF_SLUG" == "master" || 
"$CI_BUILD_REF_SLUG" == "gnome-"*) ]]; then
         echo '-----------------------------------------'
-        echo 'Running against upstream master'
+        echo 'Running against upstream'
         echo "=> $1 Nothing to do"
 
         do_Done


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]