From 9781f445c183ad3e0c950b58ad7f3a57214d5dd5 Mon Sep 17 00:00:00 2001 From: Jens Schulze Date: Tue, 15 Mar 2016 12:19:43 +0100 Subject: [PATCH] chore(Travis): remove gh_token from travis.yml and suppress commit output --- .travis.yml | 4 ---- push-docs-to-gh-pages.sh | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 88bbe47f38..d73c875fd2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,10 +38,6 @@ script: after_success: - ./push-docs-to-gh-pages.sh -env: - global: - # GH_TOKEN environment variable for pushing documentation: - - secure: "i0TL7GsZ8TIZgr7WB5qXEs8fF5sSJHGagLXEsn4DSgxI52GatfjeEaSJuAbbWV/Tg0jYidNevdhCpe7LT3IWwa2cLVRpaV1TDoQ6K4wo8zzMzAw4AMB8DO2dBY3Mz+puRN55YAV3OpEF/RiiIc7zXLW/+5H9UCOXrcnnpg6PpxE=" notifications: hipchat: rooms: diff --git a/push-docs-to-gh-pages.sh b/push-docs-to-gh-pages.sh index 2eacee3483..5d5a756dad 100755 --- a/push-docs-to-gh-pages.sh +++ b/push-docs-to-gh-pages.sh @@ -20,7 +20,7 @@ if [ "$TRAVIS_REPO_SLUG" == "sphereio/commercetools-php-sdk" ] && [ $(phpenv ver cd $HOME git config --global user.email "automation@commercetools.de" git config --global user.name "travis CI" - git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/sphereio/commercetools-php-sdk gh-pages > /dev/null + git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/sphereio/commercetools-php-sdk gh-pages > /dev/null 2>&1 cd gh-pages git rm -rf ./docs/$TRAVIS_BRANCH @@ -31,7 +31,7 @@ if [ "$TRAVIS_REPO_SLUG" == "sphereio/commercetools-php-sdk" ] && [ $(phpenv ver # for testing the big conditional we do "git status" only for now. git status git commit -m "Auto-pushed phpdoc for $TRAVIS_BRANCH on successful travis build $TRAVIS_BUILD_NUMBER to gh-pages" - git push -fq origin gh-pages > /dev/null + git push -fq origin gh-pages > /dev/null 2>&1 echo -e "Published Documentation to gh-pages.\n"