image: ruby:2.5.8 pipelines: default: - step: script: - wget -O .rubocop.yml $RUBOCOP_CONFIG_URL - gem install bundler -v $(cat Gemfile.lock | awk '/BUNDLED WITH/{ getline;print; }') - bundle install - rspec . - rubocop -p . 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)