image: ruby:2.4.0 pipelines: branches: master: - step: caches: - bundler script: - gem install bundle rubocop - bundle install - rubocop - rake - step: name: Upload Artifact deployment: test script: - gem build *.gemspec - curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"legion-exceptions-0.1.0.gem" - step: name: Deploy to test gem server deployment: production trigger: manual script: - gem install bundle geminabox - bundle install - gem build legion-exceptions.gemspec - gem inabox legion*.gem -g https://www.rubygems.org -o default: - step: caches: - bundler script: - gem install bundle rubocop - bundle install - rubocop - rake definitions: caches: bundler: vendor/bundle