Skip to content

Instantly share code, notes, and snippets.

@owainlewis
Created July 26, 2012 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save owainlewis/3184583 to your computer and use it in GitHub Desktop.
Save owainlewis/3184583 to your computer and use it in GitHub Desktop.
Travis for Rails 3
language: ruby
rvm:
- 1.9.3
env:
- DB=sqlite
- DB=mysql
- DB=postgresql
script:
- RAILS_ENV=test bundle exec rake --trace db:migrate test
before_script:
- mysql -e 'create database myapp_test'
- psql -c 'create database myapp_test' -U postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment