Skip to content

Commit 0263583

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#22750: ci: Followups for #22710
e9cf506 ci: Make git available for all merge commits (Hennadii Stepanov) 040e4de scripted-diff: Rename template to avoid CI configuration parsing warning (Hennadii Stepanov) Pull request description: 1) Remove Cirrus CI configuration parsing warning: ![Screenshot from 2021-08-20 01-13-57](https://user-images.githubusercontent.com/32963518/130151265-551873cb-6670-48a6-b0c4-687cb341a342.png) ![Screenshot from 2021-08-20 01-13-41](https://user-images.githubusercontent.com/32963518/130151273-920fb316-e7e1-457b-8933-2ac31e9c605f.png) 2) Make `git` available for merge commits, because it is now required for `depends_sources_cache` and `depends_built_cache`. Top commit has no ACKs. Tree-SHA512: d5cfb49492d2635fc2019220b0023179e09608bcb5a77c3d445e53c4cd714b145d6107ae02f2e3d0e2b196c2974b4688ae3e4fc233beb0917da29771795ed08e
2 parents 5b6104e + e9cf506 commit 0263583

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.cirrus.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ persistent_worker_template: &PERSISTENT_WORKER_TEMPLATE
2121
base_template: &BASE_TEMPLATE
2222
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
2323
merge_base_script:
24-
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi
2524
- bash -c "$PACKAGE_MANAGER_INSTALL git"
25+
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi
2626
- git fetch $CIRRUS_REPO_CLONE_URL $CIRRUS_BASE_BRANCH
2727
- git config --global user.email "[email protected]"
2828
- git config --global user.name "ci"
2929
- git merge FETCH_HEAD # Merge base to detect silent merge conflicts
3030
stateful: false # https://cirrus-ci.org/guide/writing-tasks/#stateful-tasks
3131

32-
task_template: &TASK_TEMPLATE
32+
main_template: &MAIN_TEMPLATE
3333
timeout_in: 120m # https://cirrus-ci.org/faq/#instance-timed-out
3434
container:
3535
# https://cirrus-ci.org/faq/#are-there-any-limits
@@ -46,7 +46,7 @@ task_template: &TASK_TEMPLATE
4646

4747
global_task_template: &GLOBAL_TASK_TEMPLATE
4848
<< : *BASE_TEMPLATE
49-
<< : *TASK_TEMPLATE
49+
<< : *MAIN_TEMPLATE
5050

5151
depends_sdk_cache_template: &DEPENDS_SDK_CACHE_TEMPLATE
5252
depends_sdk_cache:
@@ -219,7 +219,7 @@ task:
219219
depends_sources_cache:
220220
folder: "depends/sources"
221221
fingerprint_script: git rev-list -1 HEAD ./depends
222-
<< : *TASK_TEMPLATE
222+
<< : *MAIN_TEMPLATE
223223
container:
224224
image: ubuntu:focal
225225
env:

0 commit comments

Comments
 (0)