Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

Commit

Permalink
chore(Travis): remove gh_token from travis.yml and suppress commit ou…
Browse files Browse the repository at this point in the history
…tput
  • Loading branch information
Jens Schulze committed Mar 15, 2016
1 parent 621195d commit 9781f44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions push-docs-to-gh-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"

Expand Down

0 comments on commit 9781f44

Please # to comment.