diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..65855010 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,29 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/node:6 + + working_directory: ~/repo + + steps: + - checkout + + - run: + name: "Print Node.js version" + command: node --version + + - restore_cache: + keys: + - v1-dep-{{ .Branch }}-{{ checksum "package-lock.json" }} + - v1-dep-{{ .Branch }}- + - v1-dep- + + - run: npm install + + - save_cache: + paths: + - node_modules + key: v1-dep-{{ .Branch }}-{{ checksum "package-lock.json" }} + + - run: npm test diff --git a/circle.yml b/circle.yml deleted file mode 100644 index a2495ab3..00000000 --- a/circle.yml +++ /dev/null @@ -1,7 +0,0 @@ -machine: - node: - version: 6 - -dependencies: - cache_directories: - - "node_modules"