From db64ec0af03ea44e57b0c30d926a8f207b03b5d9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 10 Nov 2017 22:40:32 -0800 Subject: Travis: make sure git describe can work Travis only fetches the last 50 commits - which means that git describe will usually fail and our version numbers would end up being wrong. So let's fetch the whole repo and the tags as well to make sure that git describe works as expected by our tools. Signed-off-by: Dirk Hohndel --- scripts/linux/before_install.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts/linux') diff --git a/scripts/linux/before_install.sh b/scripts/linux/before_install.sh index c9dc2dd75..9f780b149 100644 --- a/scripts/linux/before_install.sh +++ b/scripts/linux/before_install.sh @@ -8,6 +8,12 @@ set -x +# Travis only pulls shallow repos. But that messes with git describe. +# Sorry Travis, fetching the whole thing and the tags as well... +git fetch --unshallow +git pull --tags +git describe + export QT_ROOT=$PWD/Qt/5.9.3 rm -rf Qt mkdir -p $QT_ROOT -- cgit v1.2.3-70-g09d2