1
0
mirror of synced 2025-11-08 12:57:47 +00:00

build(CircleCI): push coverage before running the coverage check

This commit is contained in:
Jason Dreyzehner
2018-03-10 15:53:16 -05:00
parent 58688fc9d9
commit 18e71a16aa
2 changed files with 4 additions and 3 deletions

View File

@@ -19,4 +19,5 @@ jobs:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm test
- run: npx codecov
- run: npx codecov
- run: npm run cov:check

View File

@@ -42,12 +42,12 @@
"test": "run-s build test:*",
"test:lint": "tslint --project . src/**/*.ts && prettier 'src/**/*.ts' --list-different",
"test:unit": "nyc --silent ava",
"test:coverage": "nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100",
"test:nsp": "nsp check",
"watch": "run-s clean build:main && run-p 'build:main -- -w' 'test:unit -- --watch'",
"cov": "run-s build test:unit cov:html && opn coverage/index.html",
"cov:html": "nyc report --reporter=html",
"cov:send": "nyc report --reporter=lcov > coverage.lcov && codecov",
"cov:check": "nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100",
"doc": "run-s doc:html && opn build/docs/index.html",
"doc:html": "typedoc src/index.ts --excludePrivate --mode file --theme minimal --out build/docs",
"doc:json": "typedoc --mode file --json build/docs/typedoc.json src/index.ts",
@@ -55,7 +55,7 @@
"changelog": "standard-version",
"reset": "git clean -dfx && git reset --hard && npm i",
"clean": "trash build test",
"release": "run-s reset test docs:html docs:publish changelog"
"release": "run-s reset test cov:check docs:html docs:publish changelog"
},
"scripts-info": {
"info": "Display information about the package scripts",