diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-03-13 17:32:50 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-03-13 17:25:05 -0400 |
commit | fa79016ab0d23aa3d2c0322ab6be90b37dcd01c1 (patch) | |
tree | 09c89ad901bebe52a3115c7f0b4b992eed894c69 | |
parent | d42a4fe5aaae60f33a89bde78f21820abefce922 (diff) |
travis: Clone depth 1 unless $CHECK_DOC
-rw-r--r-- | .travis.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index e5254fe610..6c3a13d73d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 |