Try to get the last tag.

This commit is contained in:
Scott Shawcroft 2018-11-27 23:59:02 -08:00 committed by GitHub
parent 272be10914
commit f4e7d7fbb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,8 +44,10 @@ notifications:
on_error: always
before_script:
# Expand the git tree back to alpha 2 so we get intermediate tags
- git fetch --shallow-exclude=4.0.0-alpha.2
# Expand the git tree back to the last tag.
- LAST_TAG=`git ls-remote --quiet --tags --sort=version:refname | egrep -o "refs/tags/[0-9]+.*\$" | tail -n 1`
- git fetch --shallow-exclude=$LAST_TAG
- git fetch --depth 1 $LAST_TAG
- git describe --dirty --always --tags
- function var_search () { case "$1" in *$2*) true;; *) false;; esac; }
- sudo dpkg --add-architecture i386