version: 2 jobs: build: docker: - image: circleci/ruby:2.6.2 environment: BUNDLE_JOBS: 3 BUNDLE_RETRY: 3 BUNDLE_PATH: vendor/bundle steps: - checkout - restore_cache: keys: - renderful-v1-{{ checksum "Gemfile.lock" }} - renderful-v1- - run: name: Bundle Install command: bundle check || bundle install - save_cache: key: renderful-v1-{{ checksum "Gemfile.lock" }} paths: - vendor/bundle - run: name: Run rspec in parallel command: | bundle exec rspec --profile 10 \ --format RspecJunitFormatter \ --out test_results/rspec.xml \ --format progress \ $(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings) - store_test_results: path: test_results