Sha256: c2efafc6d06304f3b35797b4467b0f410d71e613c787b7d838509f35befb6bb1

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

.job_base:
  image: registry.gitlab.com/gitlab-org/gitlab-build-images/debian-bullseye-ruby-${RUBY_VERSION}:bundler-2.3
  variables:
    BUNDLE_PATH: vendor/bundle
    BUNDLE_SUPPRESS_INSTALL_USING_MESSAGES: "true"
    BUNDLE_FROZEN: "true"
  before_script:
    - bundle install
  cache:
    key:
      files:
        - dri.gemspec
        - Gemfile.lock
    paths:
      - vendor/bundle
    policy: pull
  rules:
    - if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'

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

variables:
  RUBY_VERSION: "3.0"

stages:
  - build
  - test
  - deploy
  - update

build_gem:
  stage: build
  extends: .job_base
  script:
    - gem build
  cache:
    policy: pull-push

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

rspec:
  stage: test
  extends: .job_base
  parallel:
    matrix:
      - RUBY_VERSION: ['2.7', '3.0']
  script:
    - bundle exec rspec --force-color

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dri-0.10.2 .gitlab-ci.yml
dri-0.10.1 .gitlab-ci.yml
dri-0.10.0 .gitlab-ci.yml
dri-0.9.0 .gitlab-ci.yml