Created
July 19, 2014 05:39
-
-
Save murajun1978/a94460d261a4f27521b1 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: inwy/ubuntu12.04-ruby2.1.2@0.1.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: | |
install-toolbelt: true | |
- script: | |
name: Migrate DB | |
code: heroku run rake db:migrate --app $HEROKU_APP_NAME | |
- script: | |
name: Update assets | |
code: heroku run rake add_static_assets --app $HEROKU_APP_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment