Skip to content

Commit

Permalink
doc: better ci messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxxzer committed Jan 29, 2019
1 parent 60f5d21 commit cbc7c7f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions doc/update-gh-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,16 @@ if [[ $(git -C ${repo_path} diff) ]]; then
From https://github.com/bluerobotics/ping-protocol/tree/"$repository_githash
git -C ${repo_path} commit -sm "${COMMIT_MESSAGE}"

echob "Check build type."
# Do not build pull requests
if [ ${TRAVIS_PULL_REQUEST} != "false" ]; then
echo "- Do not deploy PRs."
exit 0
fi

echob "Check branch."
# Don't deploy pull requests or branches other than master
if [ ${TRAVIS_PULL_REQUEST} != "false" ] || [ ${TRAVIS_BRANCH} != "master" ]; then
# Do only build master branch
if [ ${TRAVIS_BRANCH} != "master" ]; then
echo "- Only master branch will be deployed."
exit 0
fi
Expand Down

0 comments on commit cbc7c7f

Please sign in to comment.