Skip to content

Commit

Permalink
Upgrade CircleCI to 2.0 (#119)
Browse files Browse the repository at this point in the history
* Upgrade CircleCI to 2.0

* Change version

* Full path to executable

* Simplify

* Predefined key name
  • Loading branch information
kalinchernev authored Jul 18, 2018
1 parent f8d27a3 commit 6ea9c2b
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
23 changes: 23 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2
jobs:
build:
working_directory: ~/repo
docker:
- image: circleci/node:carbon
steps:
- checkout
- run:
name: Update npm
command: 'sudo npm install -g npm@latest'
- restore_cache:
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: Install
command: npm install
- run:
name: Test
command: npm test
- save_cache:
key: dependency-cache-{{ checksum "package.json" }}
paths:
- node_modules
20 changes: 0 additions & 20 deletions circle.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"coverage": "istanbul cover _mocha --report html && istanbul check-coverage --statement 95",
"jsdoc": "jsdoc --configure .jsdocconf",
"start": "node example/app.js",
"test": "mocha"
"test": "./node_modules/.bin/mocha"
},
"bin": {
"swagger-jsdoc": "./bin/swagger-jsdoc.js"
Expand Down

0 comments on commit 6ea9c2b

Please sign in to comment.