[Git][ghc/ghc][wip/slowtest] gitlab-ci: Fetch submodules before running submodule linter

Ben Gamari gitlab at gitlab.haskell.org
Sun Jun 9 16:35:20 UTC 2019



Ben Gamari pushed to branch wip/slowtest at Glasgow Haskell Compiler / GHC


Commits:
2b87243e by Ben Gamari at 2019-06-09T16:35:15Z
gitlab-ci: Fetch submodules before running submodule linter

- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -80,6 +80,7 @@ ghc-linters:
     - git fetch "$CI_MERGE_REQUEST_PROJECT_URL" $CI_MERGE_REQUEST_TARGET_BRANCH_NAME
     - base="$(git merge-base FETCH_HEAD $CI_COMMIT_SHA)"
     - "echo Linting submodule changes between $base..$CI_COMMIT_SHA"
+    - git submodule foreach git remote update
     - submodchecker .git $(git rev-list $base..$CI_COMMIT_SHA)
   dependencies: []
   tags:
@@ -109,6 +110,7 @@ lint-submods-branch:
   extends: .lint-submods
   script:
     - "echo Linting submodule changes between $CI_COMMIT_BEFORE_SHA..$CI_COMMIT_SHA"
+    - git submodule foreach git remote update
     - submodchecker .git $(git rev-list $CI_COMMIT_BEFORE_SHA..$CI_COMMIT_SHA)
   only:
     refs:



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/2b87243ee07a77bf10f4a165c087ec7390818793

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/2b87243ee07a77bf10f4a165c087ec7390818793
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20190609/d72b885f/attachment-0001.html>


More information about the ghc-commits mailing list