Update to CircleCI 2.0
This commit is contained in:
parent
08a15c97ab
commit
92a4fc3cda
3 changed files with 18 additions and 4 deletions
17
.circleci/config.yml
Normal file
17
.circleci/config.yml
Normal file
|
@ -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
|
|
@ -1,3 +0,0 @@
|
||||||
machine:
|
|
||||||
node:
|
|
||||||
version: 8.9.4
|
|
|
@ -10,7 +10,7 @@
|
||||||
"start": "node ./dist/index.js",
|
"start": "node ./dist/index.js",
|
||||||
"prepublish": "npm run build",
|
"prepublish": "npm run build",
|
||||||
"build": "tsc",
|
"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",
|
"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"
|
"lint": "tslint src/**/*.ts --type-check --project tsconfig.json"
|
||||||
},
|
},
|
||||||
|
|
Reference in a new issue