Skip to content

Instantly share code, notes, and snippets.

@todkap
Last active August 29, 2018 14:41
Show Gist options
  • Save todkap/3a8d7a18503c25406feaa6c740ed41c3 to your computer and use it in GitHub Desktop.
Save todkap/3a8d7a18503c25406feaa6c740ed41c3 to your computer and use it in GitHub Desktop.
Sample application travis build process
language: node_js
node_js:
- "8"
branches:
only:
- master
services:
- 'docker'
before_script:
- 'make prereqs-ibmcloud'
- 'make login-ibmcloud'
# first execute the test suite.
# after the test execution is done and didn't
# fail, build the images (if this step fails
# the whole Travis build is considered a failure).
script:
- 'make test'
- 'make image'
- 'make push-image'
after_success:
- echo 'completed build process successfully'
notifications:
webhooks:
urls:
- ${TARGET_IP} ## trigger playground-deployer build process
on_success: always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment