From 6542382a0cb7b2a714f21a8075c94494d8e5b97c Mon Sep 17 00:00:00 2001 From: Frans de Jonge Date: Fri, 14 Apr 2017 21:10:52 +0200 Subject: [PATCH] Travis: `git fetch --unshallow` for version number Travis only makes a shallow clone of --depth=50. KOReader is small enough that we can just grab it all. This is necessary to generate the version number, without which some tests will fail. I'm not entirely sure why something like `git fetch origin master tags/v2015.11` doesn't do the trick, but it doesn't matter much. --- .ci/before_install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.ci/before_install.sh b/.ci/before_install.sh index ff867e8a3..ba9ee7671 100755 --- a/.ci/before_install.sh +++ b/.ci/before_install.sh @@ -10,3 +10,8 @@ ln -s "$(which gcc-4.8)" bin/cc ln -s "$(which gcc-4.8)" bin/gcc ln -s "$(which c++-4.8)" bin/c++ ln -s "$(which g++-4.8)" bin/g++ + +# Travis only makes a shallow clone of --depth=50. KOReader is small enough that +# we can just grab it all. This is necessary to generate the version number, +# without which some tests will fail. +git fetch --unshallow