From 18e71a16aaff6cfc0ac07c33acab8f2f5ed7694e Mon Sep 17 00:00:00 2001 From: Jason Dreyzehner Date: Sat, 10 Mar 2018 15:53:16 -0500 Subject: [PATCH] build(CircleCI): push coverage before running the coverage check --- .circleci/config.yml | 3 ++- package.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fff9e20..3094d5f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,4 +19,5 @@ jobs: - node_modules key: v1-dependencies-{{ checksum "package.json" }} - run: npm test - - run: npx codecov \ No newline at end of file + - run: npx codecov + - run: npm run cov:check \ No newline at end of file diff --git a/package.json b/package.json index a10ce9b..27dbf60 100644 --- a/package.json +++ b/package.json @@ -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",