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
4
4
compiler :
5
5
- gcc
6
6
git :
7
- depth : 6
7
+ depth : 1
8
8
9
9
# Each item under 'env' is a separate Travis job to execute.
10
10
# They run in separate environments, so each one must take the time
@@ -44,6 +44,11 @@ notifications:
44
44
on_error : always
45
45
46
46
before_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
47
52
- function var_search () { case "$1" in *$2*) true;; *) false;; esac; }
48
53
- sudo dpkg --add-architecture i386
49
54
You can’t perform that action at this time.
0 commit comments