refactor: invert travis check, early-out blows up

Not running within a script, so `exit 0` stops all processing which is
**NOT HELPFUL**.
This commit is contained in:
Pat Cavit 2017-01-13 20:34:44 -08:00
parent 81ef3e5951
commit c7913f20a4

View file

@ -25,21 +25,20 @@ before_script: npm run build
after_success: after_success:
- | - |
# Only want to commit things on $BRANCH # Only want to commit when building a push on whatever $BRANCH is
if [ "$TRAVIS_EVENT_TYPE" == "pull_request" ] || [ "$TRAVIS_BRANCH" != "$BRANCH" ]; then if [ "$TRAVIS_EVENT_TYPE" == "push" ] && [ "$TRAVIS_BRANCH" == "$BRANCH" ]; then
echo "Artifacts only committed on $BRANCH" # Set up SSH environment
exit 0 $(npm bin)/set-up-ssh --key "$encrypted_8b86e0359d64_key" \
fi --iv "$encrypted_8b86e0359d64_iv" \
--path-encrypted-key "./.deploy.enc"
# Set up SSH environment # Commit changes (if there were any) from running build earlier
$(npm bin)/set-up-ssh --key "$encrypted_8b86e0359d64_key" \ $(npm bin)/commit-changes --commit-message "Bundled output for commit $TRAVIS_COMMIT [skip ci]" \
--iv "$encrypted_8b86e0359d64_iv" \ --branch "$BRANCH"
--path-encrypted-key "./.deploy.enc" fi
# Commit changes (if there were any) from running build earlier
$(npm bin)/commit-changes --commit-message "Bundled output for commit $TRAVIS_COMMIT [skip ci]" \
--branch "$BRANCH"
echo "Not commiting build artifacts"
# Environment configuration # Environment configuration
env: env:
global: global: