Skip to content

Commit

Permalink
Adde xo and artifact storage.
Browse files Browse the repository at this point in the history
  • Loading branch information
orangemug committed May 11, 2019
1 parent 324aa10 commit 6830bbf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ templates:
key: v1-dependencies-{{ arch }}-{{ checksum "package.json" }}

- run: npm test
# - store_artifacts:
# path: ./docs
# destination: /artifacts
- store_artifacts:
path: ./artifacts
destination: /artifacts
jobs:
build-linux-node-v8:
docker:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/node_modules
/coverage
/artifacts
/.nyc_output
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"version": "0.0.0",
"main": "lib/index.js",
"scripts": {
"test": "nyc --reporter=html --reporter=text-summary mocha test/index.js"
"test": "npm run test:lint && npm run test:unit",
"test:lint": "xo",
"test:unit": "nyc mocha test/index.js"
},
"engines": {
"node": ">=10.0.0"
Expand All @@ -14,10 +16,13 @@
"devDependencies": {
"@mapbox/mapbox-gl-style-spec": "^13.6.0",
"mocha": "^6.1.4",
"nyc": "^14.1.0"
"nyc": "^14.1.0",
"xo": "^0.24.0"
},
"nyc": {
"check-coverage": true,
"report-dir": "artifacts/coverage",
"reporter": ["html", "text-summary"],
"branches": 100,
"lines": 100,
"functions": 100,
Expand Down

0 comments on commit 6830bbf

Please sign in to comment.