aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-10 22:40:32 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-10 22:45:52 -0800
commitdb64ec0af03ea44e57b0c30d926a8f207b03b5d9 (patch)
treeb61b064c6c34d8120248b6e8d726b7a5d84b8f98
parent07b773ff585a926324a86fd320f0d5701be31594 (diff)
downloadsubsurface-db64ec0af03ea44e57b0c30d926a8f207b03b5d9.tar.gz
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 <dirk@hohndel.org>
-rw-r--r--scripts/linux/before_install.sh6
1 files changed, 6 insertions, 0 deletions
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