Skip to content

Commit

Permalink
travis: Output git status after dirty check failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mithro committed Nov 1, 2019
1 parent 09ddf56 commit cd19440
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,15 @@ function build() {

if grep -q -- "??" $VERSION_DATA; then
echo "Repository had unknown files, failing to build!"
git status
git diff
exit 1
fi

if grep -q -- "-dirty" $VERSION_DATA; then
echo "Repository was dirty, failing to build!"
git status
git diff
exit 1
fi
fi
Expand Down

0 comments on commit cd19440

Please sign in to comment.