Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .ci/check_travis_deploy_vars.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -ex

if [[ $TRAVIS_BRANCH == master && $TRAVIS_EVENT_TYPE == push &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" == "push" is the convention, I believe, so that words with spaces or special characters don't break the script.

! "$GITHUB_TOKEN" ]]; then
echo "Please set GITHUB_TOKEN in your Travis CI environment settings"
false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why false instead of exit 1?

fi
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
script: coala --non-interactive -V

before_install:
- .ci/check_travis_deploy_vars.sh
- npm config set spin false

before_script:
Expand Down