Sha256: c0e627bf53dccd33984d9792ca166ade98e4079de0e97458a2b1142b547eee19

Contents?: true

Size: 1.34 KB

Versions: 3

Compression:

Stored size: 1.34 KB

Contents

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

      # Restore bundle cache
      - restore_cache:
          keys:
            - ruby-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile" }}-{{ checksum "ezcater_rubocop.gemspec" }}
            - ruby-cache-{{ arch }}-{{ .Branch }}-
            - ruby-cache-

      # Bundle install dependencies
      - run: gem install bundler --no-document
      - run: bundle check --path=vendor/bundle || bundle install --path=vendor/bundle --jobs=4 --retry=3
      - run: bundle clean --force

      # Store bundle cache
      - save_cache:
          key: ruby-cache-{{ .Branch }}-{{ checksum "Gemfile" }}-{{ checksum "ezcater_rubocop.gemspec" }}
          paths:
            - vendor/bundle

      # Run Rubocop
      - run:
          name: RuboCop
          command: bundle exec rubocop

      # Run rspec in parallel
      - type: shell
        command: |
          bundle exec rspec --profile 10 \
                            --format RspecJunitFormatter \
                            --out test_results/rspec.xml \
                            --format progress

      # Save test results for timing analysis
      - store_test_results:
          path: test_results
      - store_test_results:
          path: tmp/capybara

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ezcater_rubocop-0.50.2.rc0 .circleci/config.yml
ezcater_rubocop-0.50.1 .circleci/config.yml
ezcater_rubocop-0.50.0 .circleci/config.yml