File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
env : # Global defaults
2
+ CIRRUS_CLONE_DEPTH : 1
2
3
PACKAGE_MANAGER_INSTALL : " apt-get update && apt-get install -y"
3
4
MAKEJOBS : " -j10"
4
5
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
27
28
# Unconditionally install git (used in fingerprint_script).
28
29
- bash -c "$PACKAGE_MANAGER_INSTALL git"
29
30
- 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"
31
32
- git checkout FETCH_HEAD # Use merged changes to detect silent merge conflicts
32
33
# Also, the merge commit is used to lint COMMIT_RANGE="HEAD~..HEAD"
33
34
76
77
python_cache :
77
78
folder : " /tmp/python"
78
79
fingerprint_script : cat .python-version /etc/os-release
80
+ unshallow_script :
81
+ - git fetch --unshallow --no-tags
79
82
lint_script :
80
83
- ./ci/lint_run_all.sh
81
84
env :
You can’t perform that action at this time.
0 commit comments