Sha256: c3a3875f0b8ce6a49a32cddcca5505fa4a216424640f7cede7a1a12ba3b036f4

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

cache:
  paths:
  - .bundler/
image: ruby:2.4

stages:
  - publish
  - tests

rubocop:
  stage: tests
  before_script:
    - gem install rubocop -v '0.48.1'
  script:
    - rubocop

rspec:
  stage: tests
  before_script:
    - ruby -v
    - which ruby
    - gem install bundler --no-ri --no-rdoc
    - bundle install --jobs $(nproc)  "${FLAGS[@]}" --path=.bundler
  script:
    - bundle exec rspec

publish_gem:
  stage: publish
  before_script:
    - "echo \":rubygems_api_key: '${RUBYGEMS_API_KEY}'\" > ~/.gem/credentials"
    - chmod 0600 ~/.gem/credentials
  script:
    - gem build rancher-api-beta
    - gem push *.gem
  only:
    - master
  #when: manual

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rancher-api-beta-0.8.0.pre.beta .gitlab-ci.yml