From 6dc2e0331bda770aaf2197623834c955fdc9518f Mon Sep 17 00:00:00 2001 From: Craig Citro Date: Tue, 6 Jan 2015 02:32:14 -0800 Subject: [PATCH] Drop automatic doc push, make it usable locally. --- .travis.yml | 1 - scripts/push-docs | 7 ++----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 646ba55..c4e7300 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,6 @@ install: - pip install tox script: - tox -e $TOX_ENV -- tox -e pushdocs after_success: - tox -e coveralls notifications: diff --git a/scripts/push-docs b/scripts/push-docs index f233016..45a347f 100755 --- a/scripts/push-docs +++ b/scripts/push-docs @@ -16,8 +16,5 @@ # # Push a new version of the docs. -if [[ "${TRAVIS_BRANCH}" == "master" ]] && \ - [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then - ghp-import -n docs/_build/html - git push -fq https://${GH_OAUTH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages -fi +REPO=${REPO:-'origin'} +ghp-import -n docs/_build/html -r "${REPO}" -p