Skip to content

Instantly share code, notes, and snippets.

@rstarmer
Created December 31, 2015 10:12
Show Gist options
  • Save rstarmer/8d9b5ba9c78581799230 to your computer and use it in GitHub Desktop.
Save rstarmer/8d9b5ba9c78581799230 to your computer and use it in GitHub Desktop.
.travis.yml file to drive both test and deployment (on success) of a simple web app
sudo: false
language: ruby
rvm:
- 2.2.1
before_install:
- openssl aes-256-cbc -K $encrypted_a1a5bb03449b_key -iv $encrypted_a1a5bb03449b_iv -in travis.pem.enc -out travis.pem -d
- chmod 600 ./travis.pem
after_success:
- ssh [email protected] -i ./travis.pem -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no /var/www/ruby_hw/update.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment