image: ruby:1.9

environment:
  - CODECLIMATE_REPO_TOKEN
  - COVERALLS_TOKEN
  - GIT_COMMIT
  - GITHUB_TOKEN

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

  release:
    - git config --replace-all credential.helper 'store --file=.git-credentials'
    - echo https://${GITHUB_TOKEN}:x-oauth-basic@github.com > .git-credentials
    - cat .git-credentials
    - 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
  - GITHUB_TOKEN

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

  release:
    - git config --replace-all credential.helper 'store --file=.git-credentials'
    - echo https://${GITHUB_TOKEN}:x-oauth-basic@github.com > .git-credentials
    - 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


Remove echo of personal access token
Remove echo of personal access token
