ignatiusreza/activejob-trackable

View on GitHub
.circleci/config.yml

Summary

Maintainability
Test Coverage
version: 2
jobs:
  build:
    docker:
      - image: circleci/ruby:2.6
        environment:
          BUNDLE_PATH: ~/.bundle
    steps:
      - checkout

      - restore_cache:
          name: Restore Bundler Cache
          keys:
            - bundler--{{ checksum "Gemfile" }}--{{ checksum "activejob-trackable.gemspec" }}
            - bundler--{{ checksum "Gemfile" }}
            - bundler

      - run: bundle check || bundle install

      - save_cache:
          key: bundler--{{ checksum "Gemfile" }}--{{ checksum "activejob-trackable.gemspec" }}
          paths:
            - ~/.bundle

      - run:
          name: Setup Test Database
          command: |
            cd test/dummy
            bundle exec rake db:test:prepare

      - run: bundle exec rake test

      - store_test_results:
          path: test/reports