mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
ci: Fetch no git history, unless lint
This commit is contained in:
parent
ffc22b7d42
commit
faa65f12fc
1 changed files with 4 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
env: # Global defaults
|
env: # Global defaults
|
||||||
|
CIRRUS_CLONE_DEPTH: 1
|
||||||
PACKAGE_MANAGER_INSTALL: "apt-get update && apt-get install -y"
|
PACKAGE_MANAGER_INSTALL: "apt-get update && apt-get install -y"
|
||||||
MAKEJOBS: "-j10"
|
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
|
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).
|
# Unconditionally install git (used in fingerprint_script).
|
||||||
- bash -c "$PACKAGE_MANAGER_INSTALL git"
|
- bash -c "$PACKAGE_MANAGER_INSTALL git"
|
||||||
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi
|
- 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
|
- git checkout FETCH_HEAD # Use merged changes to detect silent merge conflicts
|
||||||
# Also, the merge commit is used to lint COMMIT_RANGE="HEAD~..HEAD"
|
# Also, the merge commit is used to lint COMMIT_RANGE="HEAD~..HEAD"
|
||||||
|
|
||||||
|
@ -76,6 +77,8 @@ task:
|
||||||
python_cache:
|
python_cache:
|
||||||
folder: "/tmp/python"
|
folder: "/tmp/python"
|
||||||
fingerprint_script: cat .python-version /etc/os-release
|
fingerprint_script: cat .python-version /etc/os-release
|
||||||
|
unshallow_script:
|
||||||
|
- git fetch --unshallow --no-tags
|
||||||
lint_script:
|
lint_script:
|
||||||
- ./ci/lint_run_all.sh
|
- ./ci/lint_run_all.sh
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Add table
Reference in a new issue