mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -03:00
Merge #12682: travis: Clone depth 1 unless $CHECK_DOC
fa79016
travis: Clone depth 1 unless $CHECK_DOC (MarcoFalke)
Pull request description:
As a tiny optimization, we can save about 5-9 seconds for each travis job by cloning only the tip, unless more commits are required for all the various meta checks.
Meant as fixup for my pull request #12405
Tree-SHA512: c8a9950a94309cd1dbd764693668e4df5e709129b543ffff5f3522bb1d6b326873501937dd070d301eba9a01df20093460dd3010dcb5c6c05594d6b84a19772b
This commit is contained in:
commit
9f04c8e231
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +9,7 @@ cache:
|
|||
- depends/sdk-sources
|
||||
- $HOME/.ccache
|
||||
git:
|
||||
depth: false # full clone for git subtree check, this works around issue #12388
|
||||
depth: 1
|
||||
env:
|
||||
global:
|
||||
- MAKEJOBS=-j3
|
||||
|
@ -48,6 +48,7 @@ install:
|
|||
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get install --no-install-recommends --no-upgrade -qq $PACKAGES; fi
|
||||
- if [ "$CHECK_DOC" = 1 -a "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then travis_retry pip3 install flake8 --user; fi
|
||||
before_script:
|
||||
- if [ "$CHECK_DOC" = 1 ]; then git fetch --unshallow; fi
|
||||
- if [ "$CHECK_DOC" = 1 -a "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then contrib/devtools/commit-script-check.sh $TRAVIS_COMMIT_RANGE; fi
|
||||
- if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/git-subtree-check.sh src/crypto/ctaes; fi
|
||||
- if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/git-subtree-check.sh src/secp256k1; fi
|
||||
|
|
Loading…
Reference in a new issue