Merge pull request #1360 from adafruit/tannewt-patch-5
Make sure the commit builds include version info
This commit is contained in:
commit
ab94344bae
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue