version: 2 jobs: test: working_directory: ~/calculated_attributes docker: - image: circleci/ruby:2.5 environment: GEM_HOME: ~/calculated_attributes/vendor/bundle steps: - checkout - restore_cache: key: dependency-cache-{{ checksum "calculated_attributes.gemspec" }} - run: name: bundle-install command: bundle check || bundle install --jobs=4 --retry=3 - run: name: appraisal-install command: bundle exec appraisal install - save_cache: key: dependency-cache-{{ checksum "calculated_attributes.gemspec" }} paths: - ./vendor/bundle - run: name: appraisal-rspec command: bundle exec appraisal rspec - run: name: rubocop command: bundle exec rubocop workflows: version: 2 test: jobs: - test