From b283c867bd0dbcb103b522b9b65575d6a6f687db Mon Sep 17 00:00:00 2001 From: Mark Wilson Date: Tue, 10 Jul 2018 18:59:56 -0700 Subject: [PATCH] Make project build on CircleCI 2.0 (#9) --- .circleci/config.yml | 23 +++++++++++++++++++++++ package.json | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..250047c --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,23 @@ +version: 2 +jobs: + build: + working_directory: ~/minimed-connect-to-nightscout + docker: + - image: circleci/node:8.11.3 + steps: + - checkout + - run: + name: update-npm + command: 'sudo npm install -g npm@5' + - restore_cache: + key: dependency-cache-{{ checksum "package.json" }} + - run: + name: npm-install + command: npm install + - save_cache: + key: dependency-cache-{{ checksum "package.json" }} + paths: + - ./node_modules + - run: + name: run-tests + command: npm test diff --git a/package.json b/package.json index 6bf4758..b9df441 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,8 @@ }, "license": "MIT", "engines": { - "node": "0.10.x" + "node": "8.x", + "npm": "5.x" }, "dependencies": { "common": "0.2.x",