Skip to content

Commit

Permalink
travis: Unshallow/get tags earlier.
Browse files Browse the repository at this point in the history
 * Fixes the version embedding into the firmware.
  • Loading branch information
mithro committed Jan 27, 2016
1 parent e132269 commit bbb248d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .travis/run.sh
Expand Up @@ -96,14 +96,6 @@ for BOARD in $BOARDS; do
echo "- No Github token so unable to copy built files"
fi
else
echo ""
echo ""
echo ""
echo "- Fetching non shallow to get git version"
echo "---------------------------------------------"
git fetch --unshallow && git fetch --tags
GIT_REVISION=`git describe`
echo "============================================="
# Look at repo we are running in to determine where to try pushing to if in a fork
COPY_REPO_OWNER=$(echo $TRAVIS_REPO_SLUG|awk -F'/' '{print $1}')
echo "COPY_REPO_OWNER = $COPY_REPO_OWNER"
Expand Down
9 changes: 9 additions & 0 deletions .travis/setup.sh
Expand Up @@ -3,6 +3,15 @@
set -x
set -e

echo ""
echo ""
echo ""
echo "- Fetching non shallow to get git version"
echo "---------------------------------------------"
git fetch --unshallow && git fetch --tags
GIT_REVISION=`git describe`
echo "============================================="

# Run the script once to check it works
time scripts/get-env.sh
# Run the script again to check it doesn't break things
Expand Down

0 comments on commit bbb248d

Please sign in to comment.