Sha256: 925f37a3dfe2012db9ad1aed79fcaa00b9b4953210a6fc64a8a4e5f4e9e27bf7

Contents?: true

Size: 836 Bytes

Versions: 2

Compression:

Stored size: 836 Bytes

Contents

.job_base:
  image: ruby:2.7
  variables:
    BUNDLE_PATH: vendor/bundle
    BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES: "true"
  before_script:
    - gem install bundler -v 2.3.9 --no-document
    - bundle install
  cache:
    key:
      files:
        - dri.gemspec
        - Gemfile.lock
    paths:
      - vendor/bundle
  rules:
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'

include:
  - project: gitlab-org/quality/pipeline-common
    ref: 0.3.4
    file:
      - /ci/gem-release.yml

stages:
  - build
  - test
  - deploy

build_gem:
  stage: build
  extends: .job_base
  script:
    - gem build

rubocop:
  stage: test
  extends: .job_base
  script:
    - bundle exec rubocop --color

rspec:
  stage: test
  extends: .job_base
  script:
    - bundle exec rspec --color

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dri-0.3.0 .gitlab-ci.yml
dri-0.2.0 .gitlab-ci.yml