Fix up hypothesis uploader again

This commit is contained in:
Markus Unterwaditzer 2016-09-29 16:24:52 +02:00
parent 7df4333a77
commit 37ed28d849

View file

@ -1,13 +1,14 @@
#!/bin/sh
set -ex
GIT_COMMIT_PATH="$(dirname $0)/../.hypothesis/examples"
if [ "$TRAVIS_PULL_REQUEST" = "false"]; then
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
echo "Not building on pull request."
exit 0
fi
set -e
_is_dirty() {
(! git diff-index --quiet HEAD $GIT_COMMIT_PATH) || [ "$(git status --porcelain $GIT_COMMIT_PATH | tail -n1)" != "" ]