We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c47c495 + f13fac0 commit ab94344Copy full SHA for ab94344
1 file changed
.travis.yml
@@ -4,7 +4,7 @@ language: c
4
compiler:
5
- gcc
6
git:
7
- depth: 6
+ depth: 1
8
9
# Each item under 'env' is a separate Travis job to execute.
10
# They run in separate environments, so each one must take the time
@@ -44,6 +44,11 @@ notifications:
44
on_error: always
45
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
52
- function var_search () { case "$1" in *$2*) true;; *) false;; esac; }
53
- sudo dpkg --add-architecture i386
54
0 commit comments