Sha256: 4f7158e3d95b01371c7ebb12f9d9e7761191b4d8d58ec7081497c85d46f728ce

Contents?: true

Size: 1013 Bytes

Versions: 2

Compression:

Stored size: 1013 Bytes

Contents

version: 2
jobs:
  build:
    parallelism: 1
    working_directory: ~/socrates
    docker:
      - image: circleci/ruby:2.7.0
    steps:
      - checkout

      # Restore bundle cache, with fallbacks to increase the likeliness of a cache hit
      - restore_cache:
          keys:
            - gem-cache-{{ arch }}-{{ .Branch }}
            - gem-cache

      # Bundle install dependencies and remove any unused gems
      - run:
          command: |
            gem install bundler
            bundle install --path vendor/bundle --jobs=4 && bundle clean --force

      # Store bundle cache
      - save_cache:
          key: gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
          paths:
            - vendor/bundle

      # Rubocop compliance
      - run: bundle exec rubocop

      # Run RSpec in parallel, when parallelism > 1
      - run: bundle exec rspec

      # Save the test logs for debugging
      - store_artifacts:
          path: ./log/test.log
          destination: test.log

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
socrates-0.1.25 .circleci/config.yml
socrates-0.1.24 .circleci/config.yml