[gjs/wip/smcv/fix-iwyu] CI: Make iwyu idempotent




commit a9c6d1776061f420bbef3ab4a53043cfc01cc2bb
Author: Simon McVittie <smcv debian org>
Date:   Sun Aug 23 21:16:08 2020 +0100

    CI: Make iwyu idempotent
    
    If there's already a checkout of gjs from a previous run of the iwyu
    job, the upstream remote will already exist, causing git remote add
    to fail.
    
    Signed-off-by: Simon McVittie <smcv debian org>

 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d54b7484..626ee33a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -193,7 +193,7 @@ iwyu:
   stage: source_check
   image: registry.gitlab.gnome.org/gnome/gjs:fedora.mozjs78-debug
   script:
-    - git remote add upstream https://gitlab.gnome.org/GNOME/gjs
+    - git remote add upstream https://gitlab.gnome.org/GNOME/gjs || git remote set-url upstream 
https://gitlab.gnome.org/GNOME/gjs
     - git fetch upstream
     - ./tools/run_iwyu.sh upstream/master
   only:


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