summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-11-28 09:00:24 -0500
committerGitHub <noreply@github.com>2018-11-28 09:00:24 -0500
commitab94344baee1a5d73d3890de16319cab1e2616de (patch)
tree29dcaf1b02d9faeca7780873c92575557a853806
parentc47c495acaaf1815140571808606c920b23d25b2 (diff)
parentf13fac0fb4e0aea431c072c60936f27f05c723b1 (diff)
Merge pull request #1360 from adafruit/tannewt-patch-5
Make sure the commit builds include version info
-rwxr-xr-x.travis.yml7
1 files changed, 6 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 4c7c90b73..396e194b7 100755
--- a/.travis.yml
+++ b/.travis.yml
@@ -4,7 +4,7 @@ language: c
compiler:
- gcc
git:
- depth: 6
+ depth: 1
# Each item under 'env' is a separate Travis job to execute.
# They run in separate environments, so each one must take the time
@@ -44,6 +44,11 @@ notifications:
on_error: always
before_script:
+ # Expand the git tree back to 4.0.0-alpha.1 and then fetch the latest tag.
+ - LAST_TAG=`git ls-remote --quiet --tags --sort=version:refname | egrep -o "refs/tags/[0-9]+.*\$" | tail -n 1`
+ - git fetch --shallow-exclude=4.0.0-alpha.1
+ - git fetch --depth 1 origin $LAST_TAG:$LAST_TAG
+ - git describe --dirty --always --tags
- function var_search () { case "$1" in *$2*) true;; *) false;; esac; }
- sudo dpkg --add-architecture i386