From 040e4deddcc176ecd8022549474fc79cd6fa05f5 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 20 Aug 2021 00:58:55 +0300 Subject: [PATCH 1/2] scripted-diff: Rename template to avoid CI configuration parsing warning -BEGIN VERIFY SCRIPT- sed -i 's/\btask_template/main_template/' .cirrus.yml sed -i 's/\bTASK_TEMPLATE/MAIN_TEMPLATE/' .cirrus.yml -END VERIFY SCRIPT- --- .cirrus.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 3e2e8864ac..41beb52157 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -29,7 +29,7 @@ base_template: &BASE_TEMPLATE - git merge FETCH_HEAD # Merge base to detect silent merge conflicts stateful: false # https://cirrus-ci.org/guide/writing-tasks/#stateful-tasks -task_template: &TASK_TEMPLATE +main_template: &MAIN_TEMPLATE timeout_in: 120m # https://cirrus-ci.org/faq/#instance-timed-out container: # https://cirrus-ci.org/faq/#are-there-any-limits @@ -46,7 +46,7 @@ task_template: &TASK_TEMPLATE global_task_template: &GLOBAL_TASK_TEMPLATE << : *BASE_TEMPLATE - << : *TASK_TEMPLATE + << : *MAIN_TEMPLATE depends_sdk_cache_template: &DEPENDS_SDK_CACHE_TEMPLATE depends_sdk_cache: @@ -219,7 +219,7 @@ task: depends_sources_cache: folder: "depends/sources" fingerprint_script: git rev-list -1 HEAD ./depends - << : *TASK_TEMPLATE + << : *MAIN_TEMPLATE container: image: ubuntu:focal env: From e9cf506ab015ba095dbf6a69ec4b7278dbdc548b Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 20 Aug 2021 01:11:37 +0300 Subject: [PATCH 2/2] ci: Make git available for all merge commits --- .cirrus.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 41beb52157..2a5b3d4fbe 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -21,8 +21,8 @@ persistent_worker_template: &PERSISTENT_WORKER_TEMPLATE base_template: &BASE_TEMPLATE skip: $CIRRUS_REPO_FULL_NAME == "bitcoin-core/gui" && $CIRRUS_PR == "" # No need to run on the read-only mirror, unless it is a PR. https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution merge_base_script: - - if [ "$CIRRUS_PR" = "" ]; then exit 0; fi - bash -c "$PACKAGE_MANAGER_INSTALL git" + - if [ "$CIRRUS_PR" = "" ]; then exit 0; fi - git fetch $CIRRUS_REPO_CLONE_URL $CIRRUS_BASE_BRANCH - git config --global user.email "ci@ci.ci" - git config --global user.name "ci"