Skip to content

Instantly share code, notes, and snippets.

@juliandunn
juliandunn / kitchen-travis.md
Created February 24, 2015 15:45
Doing integration testing on Travis CI with Test Kitchen and DigitalOcean

Setting up Travis-CI Test Harness

These notes were cribbed from the work that Sean O'Meara did for the Yum cookbook.

  • Ensure Travis integration is on in GitHub.
  • Set up Gemfile, Rakefile like the ones here
  • Set up .kitchen.cloud.yml
  • Set up a .travis.yml without all the encrypted secrets but with the tasks, matrix, etc. This .travis.yml needs to have env vars like DIGITAL_OCEAN_SSH_KEY_PATH set up unencrypted in the env->global section.
  • Install the Travis gem on your workstation. Encrypt the secrets you will use. This is the trickiest part: