From a4536302a7d8a84018dba62697bea8dde986281b Mon Sep 17 00:00:00 2001 From: Sebastian Gerske Date: Wed, 19 Dec 2018 10:10:53 +0100 Subject: [PATCH 1/3] fix codacy coverage --- .travis.yml | 37 +++++++++++++++++++------------------ package.json | 2 ++ 2 files changed, 21 insertions(+), 18 deletions(-) diff --git a/.travis.yml b/.travis.yml index 95a13bd..f8f62a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,42 +1,43 @@ language: node_js node_js: -- "10" + - "10" services: -- docker + - docker cache: directories: - - node_modules + - node_modules 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 build + - npm run doc after_script: -- greenkeeper-lockfile-upload + - npm run report-coverage + - greenkeeper-lockfile-upload notifications: email: false deploy: -- provider: npm - email: "devops@oceanprotocol.com" - api_key: ${NPM_TOKEN} - skip_cleanup: true - on: - tags: true + - provider: npm + email: "devops@oceanprotocol.com" + api_key: ${NPM_TOKEN} + skip_cleanup: true + on: + tags: true diff --git a/package.json b/package.json index 68e5117..ae443a8 100644 --- a/package.json +++ b/package.json @@ -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 --accountToken 71ef0d15f6f04ac29b31d704b28f866a --username h34d --projectName squid-js", "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, From e289e5e6bd0a2cbb8b1da04d2f40853fba81b907 Mon Sep 17 00:00:00 2001 From: Sebastian Gerske Date: Wed, 19 Dec 2018 10:33:43 +0100 Subject: [PATCH 2/3] fix codacy coverage --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ae443a8..541f186 100644 --- a/package.json +++ b/package.json @@ -16,7 +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 --accountToken 71ef0d15f6f04ac29b31d704b28f866a --username h34d --projectName squid-js", + "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", From f0744c23c9d9706c758fe2edaddefaa1f3e272f4 Mon Sep 17 00:00:00 2001 From: Sebastian Gerske Date: Wed, 19 Dec 2018 10:38:02 +0100 Subject: [PATCH 3/3] fix codacy coverage --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f8f62a9..ef4fd17 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,11 +23,11 @@ before_script: script: - npm run test:cover + - npm run report-coverage - npm run build - npm run doc after_script: - - npm run report-coverage - greenkeeper-lockfile-upload notifications: