1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

Merge pull request #93 from oceanprotocol/fix/codacy_coverage

fix codacy coverage
This commit is contained in:
Sebastian Gerske 2018-12-19 14:24:30 +01:00 committed by GitHub
commit 1ec765829a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 18 deletions

View File

@ -1,9 +1,9 @@
language: node_js
node_js:
- "10"
- "10"
services:
- docker
- docker
cache:
directories:
@ -13,27 +13,28 @@ matrix:
fast_finish: true
before_install:
- npm install -g npm
- npm install -g release-it greenkeeper-lockfile ganache-cli@~6.1.8
- npm install -g npm
- npm install -g codacy-coverage release-it greenkeeper-lockfile ganache-cli@~6.1.8
before_script:
- greenkeeper-lockfile-update
- ganache-cli > ganache-cli.log &
- sleep 2
- greenkeeper-lockfile-update
- ganache-cli > ganache-cli.log &
- sleep 2
script:
- npm run test:cover
- npm run build
- npm run doc
- npm run test:cover
- npm run report-coverage
- npm run build
- npm run doc
after_script:
- greenkeeper-lockfile-upload
- greenkeeper-lockfile-upload
notifications:
email: false
deploy:
- provider: npm
- provider: npm
email: "devops@oceanprotocol.com"
api_key: ${NPM_TOKEN}
skip_cleanup: true

View File

@ -16,6 +16,7 @@
"build:dist": "cross-env NODE_ENV=production webpack",
"build:watch": "tsc -w",
"doc": "typedoc --mode modules --out ./doc/ ./src/",
"report-coverage": "cat ./coverage/lcov.info | codacy-coverage --token 71ef0d15f6f04ac29b31d704b28f866a",
"run": "ts-node",
"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",
@ -34,6 +35,7 @@
],
"reporter": [
"text-summary",
"lcov",
"html"
],
"sourceMap": true,