1
0
mirror of synced 2024-11-21 20:16:03 +03:00

code coverage

This commit is contained in:
Akolzin Dmitry 2020-08-18 12:13:45 +03:00
parent 0d680208b1
commit 975a352053
4 changed files with 5359 additions and 3 deletions

1
.gitignore vendored
View File

@ -61,6 +61,5 @@ typings/
.next .next
.idea .idea
package-lock.json
out/ out/
dist/ dist/

View File

@ -16,6 +16,9 @@ jobs:
- node_js: 10 - node_js: 10
- node_js: 12 - node_js: 12
- node_js: 13 - node_js: 13
after_success:
- npm install -g codecov
- npm run report-coverage
- stage: gh pages - stage: gh pages
script: skip script: skip
before_deploy: npm run doc before_deploy: npm run doc
@ -29,6 +32,7 @@ jobs:
branch: master branch: master
if: branch = master AND type = push AND fork = false if: branch = master AND type = push AND fork = false
- stage: npm deploy - stage: npm deploy
script: skip
deploy: deploy:
provider: npm provider: npm
email: $NPM_EMAIL email: $NPM_EMAIL

5351
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,8 @@
"scripts": { "scripts": {
"doc": "./node_modules/.bin/jsdoc lib/v1/client.js lib/consts.js -R README.md", "doc": "./node_modules/.bin/jsdoc lib/v1/client.js lib/consts.js -R README.md",
"build": "./node_modules/.bin/rollup -c", "build": "./node_modules/.bin/rollup -c",
"test": "./node_modules/.bin/_mocha --require @babel/register ./tests/." "test": "./node_modules/.bin/nyc ./node_modules/.bin/_mocha --require @babel/register ./tests/.",
"report-coverage": "./node_modules/.bin/nyc report --reporter=text-lcov > coverage.lcov && codecov"
}, },
"author": "retailCRM", "author": "retailCRM",
"license": "MIT", "license": "MIT",
@ -30,6 +31,7 @@
"jsdoc": "^3.5.5", "jsdoc": "^3.5.5",
"mocha": "^5.2.0", "mocha": "^5.2.0",
"nock": "^10.0.6", "nock": "^10.0.6",
"nyc": "^15.1.0",
"rollup": "^1.2.2", "rollup": "^1.2.2",
"rollup-plugin-babel": "^4.3.2", "rollup-plugin-babel": "^4.3.2",
"rollup-plugin-node-builtins": "^2.1.2", "rollup-plugin-node-builtins": "^2.1.2",