Use new codecov uploader via Circle ORB (#341)

This commit is contained in:
William Durand 2021-10-27 19:23:31 +02:00 committed by GitHub
parent 685446dde2
commit 7236f4a985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -14,6 +14,9 @@
# #
version: 2.1 version: 2.1
orbs:
codecov: codecov/codecov@3.2.0
references: references:
nodejs_current: &nodejs_current "10" nodejs_current: &nodejs_current "10"
repo_path: &repo_path ~/webextension-polyfill repo_path: &repo_path ~/webextension-polyfill
@ -94,9 +97,7 @@ commands:
command: npm run test-coverage command: npm run test-coverage
- store_artifacts: - store_artifacts:
path: coverage path: coverage
- run: - codecov/upload
name: publish coverage data
command: npm run publish-coverage
- run_test_minified - run_test_minified
- run_test_bundlers - run_test_bundlers
- run_functional_tests - run_functional_tests

View File

@ -25,7 +25,6 @@
"browserify": "17.0.0", "browserify": "17.0.0",
"chai": "4.3.4", "chai": "4.3.4",
"chromedriver": "90.0.0", "chromedriver": "90.0.0",
"codecov": "3.8.2",
"cross-env": "7.0.3", "cross-env": "7.0.3",
"eslint": "7.25.0", "eslint": "7.25.0",
"finalhandler": "1.1.2", "finalhandler": "1.1.2",
@ -60,7 +59,6 @@
"scripts": { "scripts": {
"build": "grunt", "build": "grunt",
"prepublish": "npm run build && npm run test", "prepublish": "npm run build && npm run test",
"publish-coverage": "codecov",
"test": "mocha", "test": "mocha",
"test-coverage": "cross-env COVERAGE=y nyc mocha", "test-coverage": "cross-env COVERAGE=y nyc mocha",
"test-minified": "cross-env TEST_MINIFIED_POLYFILL=1 mocha", "test-minified": "cross-env TEST_MINIFIED_POLYFILL=1 mocha",