image: ruby:1.9

environment:
  - CODECLIMATE_REPO_TOKEN
  - COVERALLS_TOKEN
  - GIT_COMMIT
  - GIT_SSH_KEY

targets:
  build:
    - bundle install --path=vendor/bundle
    - bundle exec rake spec

  release:
    - git merge --no-ff --commit origin/master
    - git push origin ${GIT_COMMIT}:master
    - bundle install --path vendor/bundle
    - bundle exec gem bump --version minor --push


image: ruby:1.9

environment:
  - CODECLIMATE_REPO_TOKEN
  - COVERALLS_TOKEN
  - GIT_COMMIT
  - GIT_SSH_KEY

targets:
  build:
    - bundle install --path=vendor/bundle
    - bundle exec rake spec

  release:
    - mkdir -p ~/.ssh
    - cp ${GIT_SSH_KEY} ~/.ssh/id_rsa
    - git merge --no-ff --commit origin/master
    - git push origin ${GIT_COMMIT}:master
    - bundle install --path vendor/bundle
    - bundle exec gem bump --version minor --push


Copy GIT_SSH_KEY to correct location
Copy GIT_SSH_KEY to correct location
