Created
June 27, 2013 15:12
-
-
Save gustavowt/5877279 to your computer and use it in GitHub Desktop.
This file contains 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
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