From 62a2f6e849abaa189c5c55509f0d2382f77305ac Mon Sep 17 00:00:00 2001 From: leenasn Date: Wed, 4 Nov 2015 18:00:54 +0530 Subject: [PATCH] CodeClimate and Wecker integration for Test Coverage and CI respectively --- wercker.yml | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 wercker.yml diff --git a/wercker.yml b/wercker.yml new file mode 100644 index 0000000..b45812e --- /dev/null +++ b/wercker.yml @@ -0,0 +1,46 @@ +# This references the default Ruby container from +# the Docker Hub. +# https://registry.hub.docker.com/_/ruby/ +# If you want to use a specific version you would use a tag: +# ruby:2.2.2 +box: ruby +# You can also use services such as databases. Read more on our dev center: +# http://devcenter.wercker.com/docs/services/index.html +services: + - postgres + # http://devcenter.wercker.com/docs/services/postgresql.html + + # - mongodb + # http://devcenter.wercker.com/docs/services/mongodb.html + +# This is the build pipeline. Pipelines are the core of wercker +# Read more about pipelines on our dev center +# http://devcenter.wercker.com/docs/pipelines/index.html +build: + # Steps make up the actions in your pipeline + # Read more about steps on our dev center: + # http://devcenter.wercker.com/docs/steps/index.html + steps: + - bundle-install + - rails-database-yml + - script: + name: Set up db + code: bundle exec rake db:schema:load RAILS_ENV=test + - script: + name: rspec + code: CODECLIMATE_REPO_TOKEN=d125ed23dbbff48adedc3bef5c7e4a34c8555fd70b81e0fdd4e81fd69244b39f bundle exec rspec + after-steps: + - wantedly/pretty-slack-notify: + webhook_url: $SLACK_WEBHOOK_URL + channel: one-mdm +deploy: + steps: + - heroku-deploy: + key-name: HEROKU_DEPLOY_KEY + install-toolbelt: true + retry: true + run: rake db:migrate + after-steps: + - wantedly/pretty-slack-notify: + webhook_url: $SLACK_WEBHOOK_URL + channel: one-mdm