stages: - behavior_test - release image: ruby:2.4.0 before_script: - bundle install --jobs=4 --with development rspec: stage: behavior_test script: - bundle exec rspec --order rand spec publish: stage: release script: - echo "---" > ~/.gem/credentials - COLON=':' && echo "${COLON}rubygems_api_key${COLON} ${RUBYGEMS_API_KEY}" >> ~/.gem/credentials - git config --global user.email "norad.dev@gmail.com" - git config --global user.name "Norad Release" - git config --global push.default simple - chmod 0600 ~/.gem/credentials - bundle exec rake build - bundle exec rake release:guard_clean - gem push `ls ./pkg/norad_spec_runner-*.gem` - rm -fr ~/.gem only: - master