image: ruby:2.6.3 pipelines: default: - step: script: - git archive --remote=git@bitbucket.org:guideinvestimentos/rails_defaults.git HEAD .rubocop.yml | tar -x - gem update bundler - bundle install - gem install rubocop - rspec -fdoc - rubocop . branches: master: - step: script: - mkdir -p ~/.gem - gem build log_toolbox.gemspec - curl -u $RUBYGEMS_USERNAME:$RUBYGEMS_PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials - chmod 0600 ~/.gem/credentials - gem push $(ls *.gem)