Sha256: 55d95cd43112e91b698a62b2d5a7f92b395bdcfa750148ade623fa446ad6c68f

Contents?: true

Size: 1.57 KB

Versions: 2

Compression:

Stored size: 1.57 KB

Contents

version: 2.1
executors:
  ruby:
    parameters:
      version:
        description: "Ruby version number"
        default: "2.7.2"
        type: string
    docker:
      - image: cimg/ruby:<< parameters.version >>

commands:
  bundle_install:
    description: Install Ruby dependencies with Bundler
    parameters:
      version:
        description: "Ruby version number"
        default: "2.7.2"
        type: string
    steps:
      - restore_cache:
          keys:
            - bundle-v1-{{ arch }}-<< parameters.version >>
      - run:
          name: Install Ruby Dependencies
          command: |
            gem install bundler -v 2.1.4 --conservative --no-document
            bundle config --local path vendor/bundle
            bundle check || (bundle install --jobs=4 --retry=3 && bundle clean)
      - save_cache:
          paths:
            - ./vendor/bundle
          key: bundle-v1-{{ arch }}-<< parameters.version >>-{{ checksum "Gemfile.lock" }}

jobs:
  rubocop:
    executor: ruby
    steps:
      - checkout
      - bundle_install
      - run: bundle exec rubocop

  rspec:
    parameters:
      version:
        description: "Ruby version number"
        default: "2.7.2"
        type: string
    executor:
      name: ruby
      version: << parameters.version >>
    steps:
      - checkout
      - bundle_install:
          version: << parameters.version >>
      - run: bundle exec rake spec

workflows:
  version: 2
  commit-workflow:
    jobs:
      - rubocop
      - rspec:
          matrix:
            parameters:
              version: ["2.5.8", "2.6.6", "2.7.2", "3.0.0"]

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
raygun-1.2.0 .circleci/config.yml
raygun-1.1.1 .circleci/config.yml