diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-11-10 22:40:32 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-11-10 22:45:52 -0800 |
commit | db64ec0af03ea44e57b0c30d926a8f207b03b5d9 (patch) | |
tree | b61b064c6c34d8120248b6e8d726b7a5d84b8f98 | |
parent | 07b773ff585a926324a86fd320f0d5701be31594 (diff) | |
download | subsurface-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.sh | 6 |
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 |