image: ruby:2.5.0 pipelines: default: - step: script: - bundle install - rspec -fdoc branches: master: - step: script: - gem build roi_calculator.gemspec - mkdir -p ~/.gem - curl -u $RUBYGEMS_USERNAME:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials - chmod 0600 ~/.gem/credentials - gem push $(ls *.gem)