Skip to content

Instantly share code, notes, and snippets.

@nabinno
Created July 21, 2014 05:12
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 nabinno/db6c4295debdb794d79e to your computer and use it in GitHub Desktop.
Save nabinno/db6c4295debdb794d79e to your computer and use it in GitHub Desktop.
box: wercker/ruby
services:
- wercker/postgresql
build:
steps:
# Execute the bundle install step, a step provided by wercker
- bundle-install
- rails-database-yml:
service: postgresql
# Execute a custom script step.
- 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 rspecdeploy:
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