Skip to content

Instantly share code, notes, and snippets.

@gustavowt
Created June 27, 2013 15: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 gustavowt/5877279 to your computer and use it in GitHub Desktop.
Save gustavowt/5877279 to your computer and use it in GitHub Desktop.
box: wercker/ubuntu12.04-ruby1.9.3
services:
- wercker/postgresql
build:
# The steps that will be executed on build
steps:
# Install (apt-get) package foo and bar
- install-packages:
packages: build-essential
# A step that executes `bundle install` command
- bundle-install
# A step that prepares the database.yml with settings from the database you defined in services
- rails-database-yml:
service: postgresql
# A custom script step, name value is used in the UI
# and the code value contains the command that get executed
- script:
name: echo ruby information
code: |
echo "ruby version $(ruby --version) running"
echo "from location $(which ruby)"
echo -p "gem list: $(gem list)"
#migrations
- script:
name: rake
code: bundle exec rake db:migrate RAILS_ENV=test
# Run forest Run
- script:
name: rspec
script: bundle exec rspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment