Travis

BitBalloon Deployment

This page documents deployments using dpl v1 which is currently the legacy version. The dpl v2 is released, and we recommend useig it. Please see our blog post for details. dpl v2 documentation can be found here.

Travis CI can automatically deploy files to BitBalloon after a successful build.

To deploy the current directory to BitBalloon, add your encrypted BitBalloon site-id and access-token to your .travis.yml:

deploy:
  provider: bitballoon
  site-id:
    secure: "YOUR ENCRYPTED SITE ID"
  access-token:
    secure: "YOUR ENCRYPTED ACCESS TOKEN"

Deploy a specific directory #

To deploy a specific directory to BitBalloon, use the local-dir key:

deploy:
  provider: bitballoon
  site-id:
    secure: "YOUR ENCRYPTED SITE ID"
  access-token:
    secure: "YOUR ENCRYPTED ACCESS TOKEN"
  local-dir: "_build/"

Run Commands Before or After Deploy #

Sometimes, you want to run commands before or after deploying. You can use the before_deploy and after_deploy stages for this. These will only be triggered if Travis CI is actually deploying.

before_deploy: "echo 'ready?'"
deploy:
  ..
after_deploy:
  - ./after_deploy_1.sh
  - ./after_deploy_2.sh