Sha256: 3a53eac58a51eb0bc902914d791874f564a5e4193d88fcb189adb569075c3141

Contents?: true

Size: 1.4 KB

Versions: 1

Compression:

Stored size: 1.4 KB

Contents

version: 2.1

jobs:
  test:
    parameters:
      ruby-version:
        type: string
      rails-version:
        type: string

    docker:
      - image: ruby:<<parameters.ruby-version>>
        environment:
          - RAILS_VERSION=<<parameters.rails-version>>
    steps:
      - checkout

      - restore_cache:
          key: anony-bundler-{{ checksum "anony.gemspec" }}

      - run: gem install bundler -v 2.2.0
      - run: bundle config set path 'vendor/bundle'
      - run: bundle install

      - save_cache:
          key: anony-bundler-{{ checksum "anony.gemspec" }}
          paths:
            - vendor/bundle

      - run:
          command: |
            bundle exec rspec --profile 10 \
                              --format RspecJunitFormatter \
                              --out /tmp/test-results/rspec.xml \
                              --format progress \
                              spec

      - store_test_results:
          path: /tmp/test-results

      - run: bundle exec rubocop --parallel --extra-details --display-style-guide

workflows:
  version: 2
  tests:
    jobs:
      - test:
          matrix:
            parameters:
              ruby-version: ["2.4", "2.5", "2.6", "2.7"]
              rails-version: ["5.2", "6.0", "6.1"]
            exclude:
              - ruby-version: "2.4"
                rails-version: "6.0"
              - ruby-version: "2.4"
                rails-version: "6.1"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
anony-1.0.2 .circleci/config.yml