Skip to content

Commit

Permalink
chore: pass token while calling CodeCov (#3158)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Mar 18, 2020
1 parent 1adcd4b commit 501b590
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ phases:
- npm run test
post_build:
commands:
- ./node_modules/.bin/codecov -f coverage/*.json
- ./node_modules/.bin/codecov -f coverage/*.json -t e89a5f73-fd56-45de-8799-009a19bde63c
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"email": "",
"url": "https://aws.amazon.com/"
},
"config": {
"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"
},
"homepage": "https://github.com/aws/aws-sdk-js",
"contributors": [
"Loren Segal <lsegal@amazon.com>",
Expand Down Expand Up @@ -121,8 +124,8 @@
],
"scripts": {
"test": "node ./scripts/composite-test.js",
"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",
"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",
"unit": "mocha -- $npm_package_config_test_args",
"coverage": "istanbul cover ./node_modules/mocha/bin/_mocha --reporter=lcovonly -- $npm_package_config_test_args",
"browsertest": "rake browser:test && karma start",
"buildertest": "mocha --require coffeescript/register -s 1000 -t 10000 dist-tools/test/*.coffee",
"integration": "cucumber.js",
Expand Down
2 changes: 1 addition & 1 deletion scripts/composite-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async function run() {
const scripts = [
{ execute: 'executeLongProcess', command: ['npm', 'run', 'helper-test'], retryCount: 1 },
{ execute: 'executeLongProcess', command: ['npm', 'run', 'lint']},
{ execute: 'executeLongProcess', command: ['npm', 'run', 'unit'] },
{ execute: 'executeLongProcess', command: ['npm', 'run', 'coverage'] },
{ execute: 'executeLongProcess', command: ['npm', 'run', 'buildertest'] },
{ execute: 'executeLongProcess', command: ['npm', 'run', 'tstest'] },
{ execute: 'executeLongProcess', command: ['npm', 'run', 'region-check'] },
Expand Down

0 comments on commit 501b590

Please sign in to comment.