diff --git a/.travis.yml b/.travis.yml index 6438c1a062077e60368eec5227192696460369ae..efb6658598f70a2fbec7a4360901127373aba6bb 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 -