Skip to content

Instantly share code, notes, and snippets.

@mscoutermarsh
Created October 29, 2017 17:45
Show Gist options
  • Save mscoutermarsh/3e1471bff2ec5dc3af0447eb09b54d12 to your computer and use it in GitHub Desktop.
Save mscoutermarsh/3e1471bff2ec5dc3af0447eb09b54d12 to your computer and use it in GitHub Desktop.
example travis file
language: ruby
rvm:
- 2.4.1
env:
- DB=postgresql
script:
- RAILS_ENV=test bundle exec rake --trace db:create
- RAILS_ENV=test bundle exec rake --trace db:migrate
- bundle exec rake db:test:prepare
- bundle exec rspec
deploy:
provider: heroku
api_key:
secure: secret-key-generated-by-travis-read-the-docs
app: https://your-heroku-app-name.herokuapp.com
on:
repo: https://github.com/YourORG/yourRepo
run:
- "rake db:migrate"
- restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment