From 89ec79d4400b0d4ed25de6a592374cbcbfdbc624 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Thu, 23 Jun 2016 23:45:57 -0400 Subject: [PATCH] travis-ci only unshallow git for installer builds (#3633) --- .travis.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6438c1a..efb6658 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,9 +2,6 @@ language: cpp -git: - depth: 1000 - env: global: - SHADOW_BUILD_DIR=/tmp/shadow_build_dir @@ -79,9 +76,12 @@ cache: before_install: - - if [[ "${TRAVIS_PULL_REQUEST}" = "false" && "${CONFIG}" = "debug" ]]; then exit 0; fi - - cd ${TRAVIS_BUILD_DIR} && git fetch --unshallow - - git fetch --all --tags + - if [ "${CONFIG}" = "installer" ]; then + cd ${TRAVIS_BUILD_DIR} && + git fetch --unshallow && + git fetch --all --tags + ; + fi - if [ "${TRAVIS_OS_NAME}" = "linux" ]; then mkdir -p ~/.config/QtProject/ && cp ${TRAVIS_BUILD_DIR}/test/qtlogging.ini ~/.config/QtProject/ @@ -271,4 +271,3 @@ notifications: on_success: change # options: [always|never|change] default: always on_failure: always # options: [always|never|change] default: always on_start: never # options: [always|never|change] default: always -