Sha256: 3dd59375b14e6c0335a3f7b0ecee9bec8cc948dbf5e5138f5ef503f87bf96837
Contents?: true
Size: 1.62 KB
Versions: 10
Compression:
Stored size: 1.62 KB
Contents
image: ruby:2.7 stages: - setup - test - deploy setup: stage: setup allow_failure: true cache: key: gems paths: - vendor/bundle script: - apt-get update -qy - apt-get install -y nodejs - bundle install rubocop-testing: stage: test allow_failure: true script: - gem install rubocop - rubocop --lint security-testing: stage: test allow_failure: true script: - gem install brakeman - brakeman rspec-testing: stage: test script: - bundle install - rspec coverage: '/\(\d+.\d+\%\) covered/' rubygems-deploy: stage: deploy allow_failure: false script: - echo "deb http://ftp.us.debian.org/debian testing main contrib non-free" >> /etc/apt/sources.list - apt-get update - apt-get install -y git - apt-get clean all - gem install dpl - if [[ "staging" == $CI_BUILD_REF_SLUG ]];then export VERSION=`git describe --match "[0-9]*\.[0-9]*\.[0-9]*[a-z]" --abbrev=0 --tags HEAD`; fi - if [[ "master" == $CI_BUILD_REF_SLUG ]];then export VERSION=`git describe --exclude "[0-9]*\.[0-9]*\.[0-9]*[a-z]" --abbrev=0 --tags HEAD`; fi - echo $VERSION - sed -i "s/0.0.1/$VERSION/" lib/zuora_api/version.rb - git add lib/zuora_api/version.rb - git config --global user.email "connect@zuora.com" - git config --global user.name "Connect Automation" - git commit -m "Automated Version Update $VERSION" - bundle install - gem install rake - version=$(rake install | grep -o 'pkg/zuora_api-.*gem') - curl -u $USERNAME:$PASSWORD https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials - gem push $version only: - master - staging
Version data entries
10 entries across 10 versions & 1 rubygems