Created
October 29, 2017 17:45
-
-
Save mscoutermarsh/3e1471bff2ec5dc3af0447eb09b54d12 to your computer and use it in GitHub Desktop.
example travis file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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