From 603ea647cbb1a5f3b4b3c7ebf932ad941e3a7a5d Mon Sep 17 00:00:00 2001 From: Justin Hall Date: Thu, 20 Dec 2018 00:00:29 -0700 Subject: [PATCH] Move coverage reports from Coveralls to Codecov --- .circleci/config.yml | 2 +- README.md | 4 ++-- codecov.yml | 3 +++ package.json | 2 +- yarn.lock | 55 +++++++++++++++++++------------------------- 5 files changed, 31 insertions(+), 35 deletions(-) create mode 100644 codecov.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index 6561c14e..b9c6c050 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,4 +24,4 @@ jobs: - run: yarn lint - run: yarn test:browser:ci - run: yarn test:coverage --no-cache - - run: ./node_modules/.bin/coveralls < coverage/lcov.info + - run: ./node_modules/.bin/codecov diff --git a/README.md b/README.md index f53f5070..9811e854 100644 --- a/README.md +++ b/README.md @@ -199,8 +199,8 @@ This module is distributed under the [MIT License][license]. https://img.shields.io/circleci/project/github/wKovacs64/hibp/master.svg?style=flat-square [ci-url]: https://circleci.com/gh/wKovacs64/hibp [coverage-image]: - https://img.shields.io/coveralls/wKovacs64/hibp.svg?style=flat-square&branch=master -[coverage-url]: https://coveralls.io/github/wKovacs64/hibp?branch=master + https://img.shields.io/codecov/c/github/wKovacs64/hibp/master.svg?style=flat-square +[coverage-url]: https://codecov.io/gh/wKovacs64/hibp/branch/master [troy]: https://www.troyhunt.com [haveibeenpwned]: https://haveibeenpwned.com [search-by-range]: diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..b53ec352 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,3 @@ +comment: + layout: 'header, diff, files' + require_changes: true # if true: only post the comment if coverage changes diff --git a/package.json b/package.json index af3d04b6..f8e958fb 100644 --- a/package.json +++ b/package.json @@ -76,8 +76,8 @@ "@babel/preset-env": "7.2.0", "babel-core": "7.0.0-bridge.0", "babel-jest": "23.6.0", + "codecov": "3.1.0", "common-tags": "1.8.0", - "coveralls": "3.0.2", "cross-env": "5.2.0", "cypress": "3.1.3", "eslint": "5.10.0", diff --git a/yarn.lock b/yarn.lock index 33e493d4..1b3e8741 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1270,6 +1270,11 @@ argv-tools@^0.1.1: array-back "^2.0.0" find-replace "^2.0.1" +argv@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab" + integrity sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas= + arr-diff@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" @@ -2265,6 +2270,17 @@ code-point-at@^1.0.0: resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c= +codecov@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.1.0.tgz#340bd968d361f256976b5af782dd8ba9f82bc849" + integrity sha512-aWQc/rtHbcWEQLka6WmBAOpV58J2TwyXqlpAQGhQaSiEUoigTTUk6lLd2vB3kXkhnDyzyH74RXfmV4dq2txmdA== + dependencies: + argv "^0.0.2" + ignore-walk "^3.0.1" + js-yaml "^3.12.0" + request "^2.87.0" + urlgrey "^0.4.4" + collect-all@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/collect-all/-/collect-all-1.0.3.tgz#1abcc20448b58a1447487fcf34130e9512b0acf8" @@ -2547,18 +2563,6 @@ cosmiconfig@^5.0.7: js-yaml "^3.9.0" parse-json "^4.0.0" -coveralls@3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.0.2.tgz#f5a0bcd90ca4e64e088b710fa8dda640aea4884f" - integrity sha512-Tv0LKe/MkBOilH2v7WBiTBdudg2ChfGbdXafc/s330djpF3zKOmuehTeRwjXWc7pzfj9FrDUTA7tEx6Div8NFw== - dependencies: - growl "~> 1.10.0" - js-yaml "^3.11.0" - lcov-parse "^0.0.10" - log-driver "^1.2.7" - minimist "^1.2.0" - request "^2.85.0" - create-ecdh@^4.0.0: version "4.0.3" resolved "https://registry.yarnpkg.com/create-ecdh/-/create-ecdh-4.0.3.tgz#c9111b6f33045c4697f144787f9254cdc77c45ff" @@ -4046,11 +4050,6 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9: resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" integrity sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg= -"growl@~> 1.10.0": - version "1.10.5" - resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e" - integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA== - growly@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" @@ -5232,7 +5231,7 @@ js-tokens@^4.0.0: resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-yaml@^3.11.0, js-yaml@^3.12.0: +js-yaml@^3.12.0: version "3.12.0" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.12.0.tgz#eaed656ec8344f10f527c6bfa1b6e2244de167d1" integrity sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A== @@ -5501,11 +5500,6 @@ lcid@^1.0.0: dependencies: invert-kv "^1.0.0" -lcov-parse@^0.0.10: - version "0.0.10" - resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3" - integrity sha1-GwuP+ayceIklBYK3C3ExXZ2m2aM= - left-pad@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.2.0.tgz#d30a73c6b8201d8f7d8e7956ba9616087a68e0ee" @@ -5576,7 +5570,6 @@ listr-update-renderer@^0.2.0: listr-update-renderer@^0.4.0: version "0.4.0" - uid "06073fa93166277607a7814f4e1f83960081414c" resolved "https://github.com/okonet/listr-update-renderer/tarball/upgrade-log-update#06073fa93166277607a7814f4e1f83960081414c" integrity sha1-NE2YDaLKLosUW6MFkI8yrj9MyKc= dependencies: @@ -5737,11 +5730,6 @@ lodash@^4.14.0, lodash@^4.17.4: resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" integrity sha1-eCA6TRwyiuHYbcpkYONptX9AVa4= -log-driver@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8" - integrity sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg== - log-symbols@2.2.0, log-symbols@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" @@ -7362,7 +7350,7 @@ request-promise-native@^1.0.5: stealthy-require "^1.1.0" tough-cookie ">=2.3.3" -request@2.87.0, request@^2.85.0: +request@2.87.0: version "2.87.0" resolved "https://registry.yarnpkg.com/request/-/request-2.87.0.tgz#32f00235cd08d482b4d0d68db93a829c0ed5756e" integrity sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw== @@ -7444,7 +7432,7 @@ request@^2.83.0: tunnel-agent "^0.6.0" uuid "^3.1.0" -request@^2.88.0: +request@^2.87.0, request@^2.88.0: version "2.88.0" resolved "https://registry.yarnpkg.com/request/-/request-2.88.0.tgz#9c2fca4f7d35b592efe57c7f0a55e81052124fef" integrity sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg== @@ -8871,6 +8859,11 @@ url@0.11.0, url@^0.11.0: punycode "1.3.2" querystring "0.2.0" +urlgrey@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-0.4.4.tgz#892fe95960805e85519f1cd4389f2cb4cbb7652f" + integrity sha1-iS/pWWCAXoVRnxzUOJ8stMu3ZS8= + use@^2.0.0: version "2.0.2" resolved "https://registry.yarnpkg.com/use/-/use-2.0.2.tgz#ae28a0d72f93bf22422a18a2e379993112dec8e8"