Sha256: eac6f6ffcda4fa3c170098790d27d4675dfb0e572b50bb10c1b2cef9ce50c959

Contents?: true

Size: 1.83 KB

Versions: 1

Compression:

Stored size: 1.83 KB

Contents

stages:
  - build
  - deploy

include:
  - local: "/gitlabci-templates/continuous_bundle_update.yml"

continuous_bundle_update:
  stage: build

  variables:
    CACHE_VERSION: "v2"
    GIT_EMAIL:     "gitlabci@example.com"
    GIT_USER:      "GitLab CI"
    OPTIONS:       "--merge-when-pipeline-succeeds"
    ASSIGNEES:     "sue445"
    GEM_VERSION:   "2.0.1.rc1"

  before_script:
    # Set timezone to Asia/Tokyo
    - cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime

.default:
  cache:
    key: "$CI_BUILD_NAME"
    paths:
      - vendor/bundle/

  before_script:
    - bundle config --local path 'vendor/bundle'
    - bundle install --retry=3 --jobs=$(nproc)
    - bundle clean

  rules:
    - if: '$CI_COMMIT_TAG'
      when: never
    - if: '$CI_PIPELINE_SOURCE == "schedule"'
      when: never
    - if: '$IMAGE == "rubylang/ruby:master-nightly-bionic"'
      allow_failure: true
    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'

test:
  extends: .default

  stage: build

  image: $IMAGE

  script:
    - bundle exec rspec
    - bundle exec ./exe/gitlabci-bundle-update-mr --help
    - bundle exec rubocop -P

  parallel:
    matrix:
      - IMAGE:
          - ruby:2.6
          - ruby:2.7
          - ruby:3.0
          - ruby:3.1
          - rubylang/ruby:master-nightly-bionic

pages:
  extends: .default

  stage: deploy

  image: ruby

  script:
    - bundle exec yard
  artifacts:
    paths:
      - public
  rules:
    - if: '$CI_COMMIT_BRANCH == "master"'

gitlab_awesome_release:
  stage: build

  image: ruby:alpine

  script:
    - gem install gitlab_awesome_release --no-doc
    - gitlab_awesome_release create_latest_note

  variables:
    GITLAB_API_ENDPOINT: $CI_API_V4_URL
    GITLAB_PROJECT_NAME: $CI_PROJECT_PATH
    GITLAB_API_PRIVATE_TOKEN: $GITLAB_API_PRIVATE_TOKEN

  only:
    - web

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gitlabci-bundle-update-mr-2.0.1.rc1 .gitlab-ci.yml