suppress git push output in travis-gh-pages script

master
Evgeny Poberezkin 2016-03-30 01:30:00 +01:00
parent 0ea3d3928e
commit eddb249913
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && $TRAV
git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qE '\.md$|^LICENSE$' && {
rm -rf ../gh-pages
git clone -b gh-pages --single-branch https://${GITHUB_TOKEN}@github.com/epoberezkin/ajv.git ../gh-pages
mkdir -p ../gh-pages/_source
cp *.md ../gh-pages/_source
cp LICENSE ../gh-pages/_source
cd ../gh-pages
@ -14,6 +15,6 @@ if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" && $TRAV
git config user.name "Evgeny Poberezkin"
git add .
git commit -am "updated by travis build #$TRAVIS_BUILD_NUMBER"
git push origin gh-pages
git push --quiet origin gh-pages > /dev/null 2>&1
}
fi