Skip to content

Instantly share code, notes, and snippets.

@pyar6329
Created February 8, 2014 11:07
Show Gist options
  • Save pyar6329/8882028 to your computer and use it in GitHub Desktop.
Save pyar6329/8882028 to your computer and use it in GitHub Desktop.
box: wercker/ubuntu12.04-ruby2.0.0
services:
- wercker/postgresql
build:
steps:
- bundle-install
- rails-database-yml:
service: postgresql
- script:
name: echo ruby information
code: |
echo "ruby version $(ruby --version) running!"
echo "from location $(which ruby)"
echo -p "gem list: $(gem list)"
- script:
name: Set up db
code: RAILS_ENV=test bundle exec rake db:schema:load
- script:
name: Run RSpec
code: bundle exec rspec
deploy:
steps:
- heroku-deploy
- script:
name: Update database
code: heroku run rake db:migrate --app $APP_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment