From 441509e191054ad29a8718cd1fb101f5b44c548f Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Thu, 29 Sep 2016 12:31:15 +0200 Subject: [PATCH] Fix up hypothesis uploader --- scripts/upload-hypothesis-db.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/upload-hypothesis-db.sh b/scripts/upload-hypothesis-db.sh index 781cc43..c878ff1 100755 --- a/scripts/upload-hypothesis-db.sh +++ b/scripts/upload-hypothesis-db.sh @@ -2,6 +2,11 @@ GIT_COMMIT_PATH="$(dirname $0)/../.hypothesis/examples" +if [ "$TRAVIS_PULL_REQUEST" = "false"]; then + echo "Not building on pull request." + exit 0 +fi + set -e _is_dirty() { @@ -21,6 +26,10 @@ if _is_dirty; then git config --global push.default simple git config --global user.email "travis@pimutils.org" git config --global user.name "Travis CI for pimutils" + + git remote set-url origin git@github.com:pimutils/vdirsyncer + git checkout $TRAVIS_BRANCH + git add -fA $GIT_COMMIT_PATH git commit -m "Hypothesis examples"