Travis

anynines 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.

You now have the amazing ability to deploy directly to anynines after a successful build on Travis CI

Enable Edge Version #

Proper anynines support is currently included only in the edge version of Travis. See how to enable it via the .travis.yml below.

Grab the code and Deploy #

Go Grab the Travis gem from GitHub and run this command:

travis setup anynines

You will be asked to answer a few simple questions about your anynines setup and Travis will take care of the rest!

Open up your newly created .travis.yml and add edge: true to enable the deploy tool. See yml below for an example of how to do this.

Write the code and Deploy #

So you want to write your own .travis.yml, fine. Here is the minimum required to get up and running

 deploy:
   edge: true
   provider: anynines
   username: johndoe@example.com
   password: secretpassword
   organization: myorganization
   space: staging
   app_name: My app name                # (optional)

Make sure that you encrypt your password before pushing your updated .travis.yml to GitHub.

This can be easily accomplished using the Travis gem above and running:

travis encrypt --add deploy.password

Conditional releases #

You can deploy only when certain conditions are met. See Conditional Releases with on:.