Sha256: d0abbaf4d62d2eb3e29d513ae4e6b236c708c2d889380c09be4ce446aee31d21

Contents?: true

Size: 1.56 KB

Versions: 4

Compression:

Stored size: 1.56 KB

Contents

version: 2.1

jobs:
  build:
    docker:
      - image: circleci/ruby:2.6.2-node-browsers
      - image: circleci/redis:5.0.4

    working_directory: ~/repo/spec/dummy-rails-app

    steps:
      - checkout:
          path: ~/repo

      # Download and cache dependencies
      - restore_cache:
          name: Restore Rubygems cache
          keys:
          - v1-rubygems-{{ checksum "Gemfile.lock" }}
          # fallback to using the latest cache if no exact match is found
          - v1-rubygems-

      - run:
          name: Install bundler
          command: |
            gem install bundler:2.0.1
      - run:
          name: Install Ruby dependencies
          command: |
            bundle install --jobs=4 --retry=3 --path vendor/bundle

      - save_cache:
          name: Save Rubygems cache
          paths:
            - ./vendor/bundle
          key: v1-rubygems-{{ checksum "Gemfile.lock" }}

      # run tests!
      - run:
          name: run tests
          command: |
            mkdir /tmp/test-results
            TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
            
            bundle exec rspec --format progress \
                              --format RspecJunitFormatter \
                              --out /tmp/test-results/rspec.xml \
                              --format progress \
                              $TEST_FILES

      # collect reports
      - store_test_results:
          path: /tmp/test-results
      - store_artifacts:
          path: /tmp/test-results
          destination: test-results

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
balrog-2.0.1 .circleci/config.yml
balrog-2.0.0 .circleci/config.yml
balrog-1.1.0 .circleci/config.yml
balrog-1.0.0 .circleci/config.yml