Skip to content

Commit 501b590

Browse files
authored
chore: pass token while calling CodeCov (#3158)
1 parent 1adcd4b commit 501b590

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

buildspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ phases:
2020
- npm run test
2121
post_build:
2222
commands:
23-
- ./node_modules/.bin/codecov -f coverage/*.json
23+
- ./node_modules/.bin/codecov -f coverage/*.json -t e89a5f73-fd56-45de-8799-009a19bde63c

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
"email": "",
88
"url": "https://aws.amazon.com/"
99
},
10+
"config": {
11+
"test_args": "test test/json test/model test/protocol test/query test/services test/signers test/xml test/s3 test/cloudfront test/dynamodb test/polly test/rds test/publisher test/event-stream"
12+
},
1013
"homepage": "https://github.com/aws/aws-sdk-js",
1114
"contributors": [
1215
"Loren Segal <[email protected]>",
@@ -121,8 +124,8 @@
121124
],
122125
"scripts": {
123126
"test": "node ./scripts/composite-test.js",
124-
"unit": "mocha -- test test/json test/model test/protocol test/query test/services test/signers test/xml test/s3 test/cloudfront test/dynamodb test/polly test/rds test/publisher test/event-stream",
125-
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --reporter=lcovonly -- test test/json test/model test/protocol test/query test/services test/signers test/xml test/s3 test/cloudfront test/dynamodb test/polly test/rds test/publisher test/event-stream",
127+
"unit": "mocha -- $npm_package_config_test_args",
128+
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --reporter=lcovonly -- $npm_package_config_test_args",
126129
"browsertest": "rake browser:test && karma start",
127130
"buildertest": "mocha --require coffeescript/register -s 1000 -t 10000 dist-tools/test/*.coffee",
128131
"integration": "cucumber.js",

scripts/composite-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function run() {
88
const scripts = [
99
{ execute: 'executeLongProcess', command: ['npm', 'run', 'helper-test'], retryCount: 1 },
1010
{ execute: 'executeLongProcess', command: ['npm', 'run', 'lint']},
11-
{ execute: 'executeLongProcess', command: ['npm', 'run', 'unit'] },
11+
{ execute: 'executeLongProcess', command: ['npm', 'run', 'coverage'] },
1212
{ execute: 'executeLongProcess', command: ['npm', 'run', 'buildertest'] },
1313
{ execute: 'executeLongProcess', command: ['npm', 'run', 'tstest'] },
1414
{ execute: 'executeLongProcess', command: ['npm', 'run', 'region-check'] },

0 commit comments

Comments
 (0)