Skip to content

Commit

Permalink
travis: More fixes.
Browse files Browse the repository at this point in the history
 * Symlink around the right way
 * Make the output a bit nicer.
  • Loading branch information
mithro committed Jul 22, 2017
1 parent 39daeba commit b61a1fd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .travis/build.sh
Expand Up @@ -345,7 +345,7 @@ if [ ! -z "$PREBUILT_DIR" ]; then
echo "Checking for '$HDMI2USB_FIRMWARE'"
if [ -d "$HDMI2USB_FIRMWARE" ]; then
echo "Changing $PLATFORM from '$(readlink unstable)' to '$HDMI2USB_FIRMWARE'"
ln -sf unstable "$HDMI2USB_FIRMWARE"
ln -sf "$HDMI2USB_FIRMWARE" unstable
git add unstable
git commit -a \
-m "Updating unstable link (Travis build #$TRAVIS_BUILD_NUMBER of $GIT_REVISION for PLATFORM=$PLATFORM TARGET=$TARGET CPU=$CPU)" \
Expand All @@ -366,11 +366,16 @@ if [ ! -z "$PREBUILT_DIR" ]; then
echo
echo "Changes to be pushed (Try $i)"
echo "---------------------------------------------"
git diff origin/master --stat=1000,1000 --exit-code && break
git diff origin/master --stat=1000,1000
git diff origin/master --quiet --exit-code && break
echo
echo "Pushing (Try $i)"
echo "---------------------------------------------"
git push --quiet origin master > /dev/null 2>&1
if git push --quiet origin master > /dev/null 2>&1 ; then
echo "Push success!"
else
echo "Push failed :-("
fi
done
echo
echo "Push finished!"
Expand Down

0 comments on commit b61a1fd

Please sign in to comment.