summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-06-09 12:31:32 -0400
committerBen Gamari <ben@smart-cactus.org>2019-06-12 08:20:25 -0400
commit0782141ef52c72523b82cd83b7466a3a65d94a31 (patch)
treefab9458f8dfd6c5ff9dd36052a81c030c6ad59f4
parenta798c130b3adc6c336856243a14175d4bd7c770f (diff)
downloadhaskell-0782141ef52c72523b82cd83b7466a3a65d94a31.tar.gz
gitlab-ci: Fetch submodules before running submodule linter
-rw-r--r--.gitlab-ci.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 14f5c0f309..912d057fb2 100644
--- a/.gitlab-ci.yml
+++ b/.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: