mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
fix codacy coverage
This commit is contained in:
parent
d6af0d8c9a
commit
a4536302a7
37
.travis.yml
37
.travis.yml
@ -1,42 +1,43 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- "10"
|
- "10"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- npm install -g npm
|
- npm install -g npm
|
||||||
- npm install -g release-it greenkeeper-lockfile ganache-cli@~6.1.8
|
- npm install -g codacy-coverage release-it greenkeeper-lockfile ganache-cli@~6.1.8
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- greenkeeper-lockfile-update
|
- greenkeeper-lockfile-update
|
||||||
- ganache-cli > ganache-cli.log &
|
- ganache-cli > ganache-cli.log &
|
||||||
- sleep 2
|
- sleep 2
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm run test:cover
|
- npm run test:cover
|
||||||
- npm run build
|
- npm run build
|
||||||
- npm run doc
|
- npm run doc
|
||||||
|
|
||||||
after_script:
|
after_script:
|
||||||
- greenkeeper-lockfile-upload
|
- npm run report-coverage
|
||||||
|
- greenkeeper-lockfile-upload
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
email: false
|
email: false
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: npm
|
- provider: npm
|
||||||
email: "devops@oceanprotocol.com"
|
email: "devops@oceanprotocol.com"
|
||||||
api_key: ${NPM_TOKEN}
|
api_key: ${NPM_TOKEN}
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
"build:dist": "cross-env NODE_ENV=production webpack",
|
"build:dist": "cross-env NODE_ENV=production webpack",
|
||||||
"build:watch": "tsc -w",
|
"build:watch": "tsc -w",
|
||||||
"doc": "typedoc --mode modules --out ./doc/ ./src/",
|
"doc": "typedoc --mode modules --out ./doc/ ./src/",
|
||||||
|
"report-coverage": "cat ./coverage/lcov.info | codacy-coverage --accountToken 71ef0d15f6f04ac29b31d704b28f866a --username h34d --projectName squid-js",
|
||||||
"run": "ts-node",
|
"run": "ts-node",
|
||||||
"release": "./node_modules/release-it/bin/release-it.js --src.tagName='v%s' --github.release --npm.publish --non-interactive",
|
"release": "./node_modules/release-it/bin/release-it.js --src.tagName='v%s' --github.release --npm.publish --non-interactive",
|
||||||
"release-minor": "./node_modules/release-it/bin/release-it.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive",
|
"release-minor": "./node_modules/release-it/bin/release-it.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive",
|
||||||
@ -34,6 +35,7 @@
|
|||||||
],
|
],
|
||||||
"reporter": [
|
"reporter": [
|
||||||
"text-summary",
|
"text-summary",
|
||||||
|
"lcov",
|
||||||
"html"
|
"html"
|
||||||
],
|
],
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user