Sha256: 0ce45d9c099722bfbfe86a4795f7d796546314dd62a81ac4b05a535a8787857f

Contents?: true

Size: 1.23 KB

Versions: 2

Compression:

Stored size: 1.23 KB

Contents

version: 2
jobs:
  setup:
    docker: &docker
      - image: circleci/ruby:2.5.1-node
        environment:
          BUNDLE_PATH: vendor/bundle

    steps:
      - checkout

      - run:
          name: Check if Ruby versions match
          command: test "$(ruby -v | grep -oP '\d\.\d\.\d')" = "$(cat .ruby-version)"

      - run:
          name: Install dependencies
          command: bundle install --jobs=4 --retry=3

      - persist_to_workspace:
          root: .
          paths:
            - .

  lint:
    docker: *docker
    steps:
      - attach_workspace:
          at: .

      - run: bundle exec rake rubocop

  test:
    docker: *docker
    steps:
      - attach_workspace:
          at: .

      - run:
          name: run tests
          command: |
            mkdir /tmp/test-results

            bundle exec rspec --format progress \
                            --format RspecJunitFormatter \
                            --out /tmp/test-results/rspec.xml \
                            --format progress

      - store_test_results:
          path: /tmp/test-results

workflows:
  version: 2
  lint-and-test:
    jobs:
      - setup
      - lint:
          requires:
            - setup
      - test:
          requires:
            - setup

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
soapy_cake-2.3.1 .circleci/config.yml
soapy_cake-2.3.0 .circleci/config.yml