Sha256: e35da6e7e88f355bc5c12f768d327dc49d0bd26ca75a5fc46647c4cc7652e585

Contents?: true

Size: 1.17 KB

Versions: 5

Compression:

Stored size: 1.17 KB

Contents

image: ruby:2.3.1
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

rubygems-deploy:
  stage: deploy
  allow_failure: false
  script:
  - 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

rubygems-deploy:
  stage: deploy
  allow_failure: false
  when: manual
  script:
  - 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:
  - staging

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
zuora_api-1.5.2 .gitlab-ci.yml
zuora_api-1.5.1 .gitlab-ci.yml
zuora_api-1.5.0 .gitlab-ci.yml
zuora_api-1.4.12b .gitlab-ci.yml
zuora_api-1.4.12a .gitlab-ci.yml