.test_template: &test_definition stage: test script: - bundle install - bundle exec rake verify build install test:2.6: image: ruby:2.6 <<: *test_definition test:2.5: image: ruby:2.5 <<: *test_definition test:2.4: image: ruby:2.4 <<: *test_definition deploy: stage: deploy script: - mkdir -p ~/.gem/ - "printf '---\n:rubygems_api_key: $RUBYGEMS_API_KEY\n' > ~/.gem/credentials" - bundle install - bundle exec rake release[remote] only: - tags