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

Ben Gamari gitlab at gitlab.haskell.org
Sun Jun 9 16:32:31 UTC 2019



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


Commits:
46d2176b by Ben Gamari at 2019-06-09T16:31:32Z
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 forall 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 forall 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/46d2176b2addcc68db227013af6ef0add162286b

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/commit/46d2176b2addcc68db227013af6ef0add162286b
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/11328bda/attachment.html>


More information about the ghc-commits mailing list