Sha256: 6a39899a6058a1f386580d1f8af443562a96ae643e77099b16f91c7678ba7548

Contents?: true

Size: 1013 Bytes

Versions: 1

Compression:

Stored size: 1013 Bytes

Contents

version: 2
jobs:
  build:
    parallelism: 1
    working_directory: ~/socrates
    docker:
      - image: circleci/ruby:3.0.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

1 entries across 1 versions & 1 rubygems

Version Path
socrates-0.1.26 .circleci/config.yml