aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2023-01-27 18:46:13 +0000
committerfanquake <fanquake@gmail.com>2023-01-27 18:46:20 +0000
commit4b51290f719559b8506425177f7758abe66fe2c3 (patch)
treeba9279b54b01938e1e238cb23f85c49a8a3f4c48
parent483a4bb8197af46277aa8793378d868eb3c82793 (diff)
parentfaa65f12fc137231c0333330f670847473650028 (diff)
Merge bitcoin/bitcoin#26977: ci: Fetch no git history, unless lint
faa65f12fc137231c0333330f670847473650028 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 fad7281d7842f337932cf44e703fdd631230ddd6 ACKs for top commit: real-or-random: ACK faa65f12fc137231c0333330f670847473650028 Tree-SHA512: 1912d6a2c494de0ac2f69ac1dad568b7b2b9eb52e261d98e05f1184852281cd7fa9bc065ffe632b29ef204c3c7208034ef7b3b516aab3f3eba6b7a81db96ddee
-rw-r--r--.cirrus.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 97fe9866ae..64fcd82c2b 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -1,4 +1,5 @@
env: # Global defaults
+ CIRRUS_CLONE_DEPTH: 1
PACKAGE_MANAGER_INSTALL: "apt-get update && apt-get install -y"
MAKEJOBS: "-j10"
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
# Unconditionally install git (used in fingerprint_script).
- bash -c "$PACKAGE_MANAGER_INSTALL git"
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi
- - git fetch $CIRRUS_REPO_CLONE_URL "pull/${CIRRUS_PR}/merge"
+ - git fetch --depth=1 $CIRRUS_REPO_CLONE_URL "pull/${CIRRUS_PR}/merge"
- git checkout FETCH_HEAD # Use merged changes to detect silent merge conflicts
# Also, the merge commit is used to lint COMMIT_RANGE="HEAD~..HEAD"
@@ -76,6 +77,8 @@ task:
python_cache:
folder: "/tmp/python"
fingerprint_script: cat .python-version /etc/os-release
+ unshallow_script:
+ - git fetch --unshallow --no-tags
lint_script:
- ./ci/lint_run_all.sh
env: