File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ language: c
44compiler :
55 - gcc
66git :
7- depth : 6
7+ depth : 1
88
99# Each item under 'env' is a separate Travis job to execute.
1010# They run in separate environments, so each one must take the time
@@ -44,6 +44,11 @@ notifications:
4444 on_error : always
4545
4646before_script :
47+ # Expand the git tree back to 4.0.0-alpha.1 and then fetch the latest tag.
48+ - LAST_TAG=`git ls-remote --quiet --tags --sort=version:refname | egrep -o "refs/tags/[0-9]+.*\$" | tail -n 1`
49+ - git fetch --shallow-exclude=4.0.0-alpha.1
50+ - git fetch --depth 1 origin $LAST_TAG:$LAST_TAG
51+ - git describe --dirty --always --tags
4752 - function var_search () { case "$1" in *$2*) true;; *) false;; esac; }
4853 - sudo dpkg --add-architecture i386
4954
You can’t perform that action at this time.
0 commit comments