version: 2
jobs:
  build:
    docker:
      - image: circleci/node:8.7
    working_directory: ~/repo
    steps:
      - checkout
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "package.json" }}
          - v1-dependencies-
      - run: npm install
      - run: npm run load
      - run: sudo apt-get update
      - run: sudo apt-get install mongodb
      - save_cache:
          paths:
            - node_modules
            - modules/*/node_modules
            - vendor/apt
          key: v1-dependencies-{{ checksum "package.json" }}
      - run: npm run build
      - run: npm run chk
      - run: npm test

version: 2
jobs:
  build:
    docker:
      - image: circleci/node:8.7
    working_directory: ~/repo
    steps:
      - checkout
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "package.json" }}
          - v1-dependencies-
      - run: npm install
      - run: npm run load
      - save_cache:
          paths:
            - node_modules
            - modules/*/node_modules
            - vendor/apt
          key: v1-dependencies-{{ checksum "package.json" }}
      - run: npm run build
      - run: npm run chk
      - run: npm test

Remove installing mongodb provided by Ubuntu in CircleCI
[phenyl-mongodb] Remove installing mongodb provided by Ubuntu in CircleCI
