diff --git a/.travis.yml b/.travis.yml index ee321b375e..ec74c3683f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ git: - depth: 1 + depth: 10 language: c dist: trusty sudo: false diff --git a/.travis_do.sh b/.travis_do.sh index 673dced26d..f2fc9c6038 100755 --- a/.travis_do.sh +++ b/.travis_do.sh @@ -146,6 +146,11 @@ echo_blue "=== Travis ENV" env echo_blue "=== Travis ENV" +until git merge-base ${TRAVIS_COMMIT_RANGE/.../ } > /dev/null; do + echo_blue "Fetching 50 commits more" + git fetch origin --deepen=50 +done + if [ "$TRAVIS_PULL_REQUEST" = false ] ; then echo "Only Pull Requests are supported at the moment." >&2 exit 0