version: 2

jobs:
  build:
    docker:
      - image: circleci/ruby:2.7.0

    steps:
      - checkout

      - restore_cache:
          keys:
            - bitters-{{ arch }}-{{ checksum "bitters.gemspec" }}

      - run:
          name: Install Ruby dependencies
          command: bundle install --path vendor/bundle

      - save_cache:
          key: bitters-{{ arch }}-{{ checksum "bitters.gemspec" }}
          paths:
            - vendor/bundle

      - run:
          name: Run the tests
          command: bundle exec rake

version: 2

jobs:
  build:
    docker:
      - image: circleci/ruby:2.7.0
        environment:
          BUNDLE_PATH: vendor/bundle

    steps:
      - checkout

      - restore_cache:
          keys:
            - bitters-{{ arch }}-{{ checksum "bitters.gemspec" }}

      - run:
          name: Install Ruby dependencies
          command: bundle install

      - save_cache:
          key: bitters-{{ arch }}-{{ checksum "bitters.gemspec" }}
          paths:
            - vendor/bundle

      - run:
          name: Run the tests
          command: bundle exec rake

Set bundle path on CI
Set bundle path on CI

This commit tells Circle CI where to install bundle using an environment
variable. Using the `--path` flag is deprecated on Circle CI.
