]> granicus.if.org Git - esp-idf/commitdiff
CI: check if internal submodule synced to GH
authorHe Yin Ling <heyinling@espressif.com>
Thu, 8 Jun 2017 03:55:27 +0000 (11:55 +0800)
committerAnton Maklakov <anton@espressif.com>
Mon, 19 Jun 2017 03:52:43 +0000 (11:52 +0800)
    See MR !834

.gitlab-ci.yml

index e674e5a62515ea3fb15933fb717d9e23967d2e39..b7dc3b66e5bfec423ed689270e80c2dbb17e2518 100644 (file)
@@ -348,6 +348,21 @@ check_commit_msg:
     # commit start with "WIP: " need to be squashed before merge
     - 'git log --pretty=%s master..${CI_COMMIT_REF_NAME} | grep "^WIP: " || exit 0 && exit 1'
 
+check_submodule_sync:
+  stage: deploy
+  image: $CI_DOCKER_REGISTRY/esp32-ci-env
+  tags:
+    - build
+  except:
+    - master
+    - /^release\/v/
+    - /^v\d+\.\d+(\.\d+)?($|-)/
+  before_script:
+    - echo "do not use gitlab submodule repository"
+  script:
+    # check if all submodules are correctly synced to public repostory
+    - git submodule update --init --recursive
+
 assign_test:
   <<: *build_template
   stage: assign_test