Skip to content

Commit 4b51290

Browse files
committed
Merge bitcoin/bitcoin#26977: ci: Fetch no git history, unless lint
faa65f1 ci: Fetch no git history, unless lint (MarcoFalke) Pull request description: Should cut 20s from each build, with no downside? This is possible since commit fad7281 ACKs for top commit: real-or-random: ACK faa65f1 Tree-SHA512: 1912d6a2c494de0ac2f69ac1dad568b7b2b9eb52e261d98e05f1184852281cd7fa9bc065ffe632b29ef204c3c7208034ef7b3b516aab3f3eba6b7a81db96ddee
2 parents 483a4bb + faa65f1 commit 4b51290

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.cirrus.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
env: # Global defaults
2+
CIRRUS_CLONE_DEPTH: 1
23
PACKAGE_MANAGER_INSTALL: "apt-get update && apt-get install -y"
34
MAKEJOBS: "-j10"
45
TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
@@ -27,7 +28,7 @@ base_template: &BASE_TEMPLATE
2728
# Unconditionally install git (used in fingerprint_script).
2829
- bash -c "$PACKAGE_MANAGER_INSTALL git"
2930
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi
30-
- git fetch $CIRRUS_REPO_CLONE_URL "pull/${CIRRUS_PR}/merge"
31+
- git fetch --depth=1 $CIRRUS_REPO_CLONE_URL "pull/${CIRRUS_PR}/merge"
3132
- git checkout FETCH_HEAD # Use merged changes to detect silent merge conflicts
3233
# Also, the merge commit is used to lint COMMIT_RANGE="HEAD~..HEAD"
3334

@@ -76,6 +77,8 @@ task:
7677
python_cache:
7778
folder: "/tmp/python"
7879
fingerprint_script: cat .python-version /etc/os-release
80+
unshallow_script:
81+
- git fetch --unshallow --no-tags
7982
lint_script:
8083
- ./ci/lint_run_all.sh
8184
env:

0 commit comments

Comments
 (0)