From 5a3ea9b2c43127d91cc675f035223eea9d037235 Mon Sep 17 00:00:00 2001 From: dongheng Date: Wed, 18 Sep 2019 14:56:24 +0800 Subject: [PATCH] fix(ci): download submodule before compiling in case of examples checking error --- .gitlab-ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c887a49..85a94e77 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,8 @@ before_script: before_script: &do_nothing_before # apply bot filter in before script - *apply_bot_filter - - echo "Not setting up GitLab key, not fetching submodules" + - echo "Not setting up GitLab key, fetching submodules ..." + - git submodule update --init --recursive - source tools/ci/configure_ci_environment.sh .build_template: &build_template @@ -121,6 +122,7 @@ build_docs: - $BOT_LABEL_BUILD - $BOT_LABEL_EXAMPLE_TEST - $BOT_LABEL_REGULAR_TEST + before_script: *do_nothing_before script: # it's not possible to build 100% out-of-tree and have the "artifacts" # mechanism work, but this is the next best thing @@ -147,6 +149,7 @@ build_docs: - $BOT_LABEL_BUILD - $BOT_LABEL_EXAMPLE_TEST - $BOT_LABEL_REGULAR_TEST + before_script: *do_nothing_before script: # it's not possible to build 100% out-of-tree and have the "artifacts" # mechanism work, but this is the next best thing