Skip to content

Commit 9f04c8e

Browse files
committed
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
2 parents c6fc665 + fa79016 commit 9f04c8e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cache:
99
- depends/sdk-sources
1010
- $HOME/.ccache
1111
git:
12-
depth: false # full clone for git subtree check, this works around issue #12388
12+
depth: 1
1313
env:
1414
global:
1515
- MAKEJOBS=-j3
@@ -48,6 +48,7 @@ install:
4848
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get install --no-install-recommends --no-upgrade -qq $PACKAGES; fi
4949
- if [ "$CHECK_DOC" = 1 -a "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then travis_retry pip3 install flake8 --user; fi
5050
before_script:
51+
- if [ "$CHECK_DOC" = 1 ]; then git fetch --unshallow; fi
5152
- if [ "$CHECK_DOC" = 1 -a "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then contrib/devtools/commit-script-check.sh $TRAVIS_COMMIT_RANGE; fi
5253
- if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/git-subtree-check.sh src/crypto/ctaes; fi
5354
- if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/git-subtree-check.sh src/secp256k1; fi

0 commit comments

Comments
 (0)