Skip to content

Commit

Permalink
Update circleci to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Jun 22, 2018
1 parent 8d125af commit c7b858a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2
jobs:
build:
working_directory: ~/mern-starter # directory where steps will run
docker: # run the steps with Docker
- image: circleci/node:8.11.3
steps:
- checkout
- run:
name: update-npm
command: 'sudo npm install -g npm@latest'
- restore_cache: # special step to restore the dependency cache
key: dependency-cache-{{ checksum "package.json" }}
- run:
name: install-deps
command: npm install
- save_cache: # special step to save the dependency cache
key: dependency-cache-{{ checksum "package.json" }}
paths:
- ./node_modules
- run:
name: install-coveralls
command: npm install coveralls
- run: # run tests with code coverage
name: test-code-coverage
command: npm run coverage
- run: # run coveralls report
name: test-report-coveralls
command: npm run coveralls
18 changes: 0 additions & 18 deletions circle.yml

This file was deleted.

2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
"pub": "npm version patch && npm publish && git push",
"sync": "git ac && git pull --rebase && git push",
"coverage": "nyc npm test",
"precoveragehtml": "npm run coverage",
"coveragehtml": "nyc report -r html",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
"repository": {
Expand Down

0 comments on commit c7b858a

Please sign in to comment.