From 92a4fc3cdacacabd343e0a5eb299af0033f07f5c Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 28 Jan 2018 11:29:54 +0000 Subject: [PATCH] Update to CircleCI 2.0 --- .circleci/config.yml | 17 +++++++++++++++++ circle.yml | 3 --- package.json | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 circle.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..238892a --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,17 @@ +version: 2.0 + +jobs: + build: + docker: + - image: circleci/node:8.9.4 + steps: + - checkout + - run: + name: Install dependencies + command: npm install + - run: + name: Build Project + command: npm run build + - run: + name: Run Tests + command: npm test diff --git a/circle.yml b/circle.yml deleted file mode 100644 index c087790..0000000 --- a/circle.yml +++ /dev/null @@ -1,3 +0,0 @@ -machine: - node: - version: 8.9.4 diff --git a/package.json b/package.json index 1345638..c5ae9ec 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "start": "node ./dist/index.js", "prepublish": "npm run build", "build": "tsc", - "test": "npm run build && npm run lint && npm run mocha", + "test": "npm run lint && npm run mocha", "mocha": "mocha --compilers ts:ts-node/register --require scripts/test-helper.js --recursive --bail tests/**/*.test.ts tests/*.test.ts", "lint": "tslint src/**/*.ts --type-check --project tsconfig.json" },