Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .docsettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,19 @@ known_content_issues:
- ['packages/@azure/cognitiveservices-visualsearch/README.md', '#1583']
- ['packages/@azure/cognitiveservices-websearch/README.md', '#1583']
- ['packages/@azure/eventgrid/README.md', '#1583']
- ['sdk/cosmosdb/cosmos/README.md', '#1583']
- ['sdk/cosmosdb/cosmos/src/test/readme.md', '#1583']
- ['sdk/cosmosdb/cosmos/samples/readme.md', '#1583']
- ['sdk/cosmosdb/cosmos/samples/UserManagement/README.md', '#1583']
- ['sdk/cosmosdb/cosmos/samples/TodoApp/readme.md', '#1583']
- ['sdk/cosmosdb/cosmos/samples/ChangeFeed/README.md', '#1583']
- ['sdk/cosmosdb/cosmos/samples/MultiRegionWrite/readme.md', '#1583']
- ['sdk/cosmosdb/cosmos/samples/ServerSideScripts/README.md', '#1583']
- ['sdk/cosmosdb/cosmos/samples/ServerSideScripts/JS/README.md', '#1583']
- ['sdk/cosmosdb/cosmos/samples/IndexManagement/README.md', '#1583']
- ['sdk/cosmosdb/cosmos/samples/ItemManagement/README.md', '#1583']
- ['sdk/cosmosdb/cosmos/samples/DatabaseManagement/README.md', '#1583']
- ['sdk/cosmosdb/cosmos/samples/ContainerManagement/README.md', '#1583']
- ['sdk/eventhub/README.md', '#1583']
- ['sdk/eventhub/event-hubs/README.md', '#1583']
- ['sdk/eventhub/event-hubs/samples/README.md', '#1583']
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"check:everything": "ts-node ./.scripts/checkEverything.ts",
"latest": "ts-node ./.scripts/latest.ts",
"local": "ts-node ./.scripts/local.ts",
"install-client-cosmos": "cd sdk/cosmosdb/cosmos && npm install",
"install-client-eventhubs-client": "cd sdk/eventhub/event-hubs && npm install",
"install-client-eventhubs-processor": "cd sdk/eventhub/event-processor-host && npm install",
"install-client-keyvault": "cd sdk/keyvault/keyvault && npm install",
Expand All @@ -41,6 +42,7 @@
"install-client-storage-file": "cd sdk/storage/storage-file && npm install",
"install-client-storage-queue": "cd sdk/storage/storage-queue && npm install",
"install-client": "npm-run-all -p -l install-client-*",
"build-client-cosmos": "cd sdk/cosmosdb/cosmos && npm run build",
"build-client-eventhubs-client": "cd sdk/eventhub/event-hubs && npm run build",
"build-client-eventhubs-processor": "cd sdk/eventhub/event-processor-host && npm run build",
"build-client-keyvault": "cd sdk/keyvault/keyvault && npm run build",
Expand All @@ -50,6 +52,7 @@
"build-client-storage-file": "cd sdk/storage/storage-file && npm run build",
"build-client-storage-queue": "cd sdk/storage/storage-queue && npm run build",
"build-client": "npm-run-all -p -l build-client-*",
"pack-client-cosmos": "cd sdk/cosmosdb/cosmos && npm pack",
"pack-client-eventhubs-client": "cd sdk/eventhub/event-hubs && npm pack",
"pack-client-eventhubs-processor": "cd sdk/eventhub/event-processor-host && npm pack",
"pack-client-keyvault": "cd sdk/keyvault/keyvault && npm pack",
Expand All @@ -61,9 +64,10 @@
"pack-client": "npm-run-all -p -l pack-client-*",
"test-client-template": "cd sdk/template/template && npm run test",
"test-client": "npm-run-all -p -l \"test-client-* -- {@}\"",
"test-client-cosmos": "echo skipped",
"test-client-eventhubs-client": "echo skipped",
"test-client-eventhubs-processor": "echo skipped",
"test-client-servicebus": "echo skipped",
"test-client-servicebus": "echo skipped",
"test-client-storage-blob": "echo skipped",
"test-client-storage-file": "echo skipped",
"test-client-storage-queue": "echo skipped",
Expand All @@ -80,6 +84,7 @@
"live-test-client-storage-file-browser": "cd sdk/storage/storage-file && npm run unit-browser",
"live-test-client-storage-queue-browser": "cd sdk/storage/storage-queue && npm run unit-browser",
"live-test-client": "npm-run-all -p -l \"live-test-client-* -- {@}\"",
"audit-client-cosmos": "cd sdk/cosmosdb/cosmos && npm audit",
"audit-client-eventhubs-client": "cd sdk/eventhub/event-hubs && npm i --package-lock-only && npm audit",
"audit-client-eventhubs-processor": "cd sdk/eventhub/event-processor-host && npm i --package-lock-only && npm audit",
"audit-client-keyvault": "cd sdk/keyvault/keyvault && npm i --package-lock-only && npm audit",
Expand All @@ -89,6 +94,7 @@
"audit-client-storage-file": "cd sdk/storage/storage-file && npm i --package-lock-only && npm audit",
"audit-client-storage-queue": "cd sdk/storage/storage-queue && npm i --package-lock-only && npm audit",
"audit-client": "npm-run-all -p -l audit-client-*",
"lint-client-cosmos": "cd sdk/cosmosdb/cosmos && npm run lint",
"lint-client-template": "cd sdk/template/template && npm run eslint",
"lint-client": "npm-run-all -p -l lint-client-*",
"analyze-client": "npm run audit-client && npm run lint-client"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

trigger:
branches:
include:
- master
- cosmos-build-master
paths:
include:
- sdk/cosmosdb/cosmos/*

pr:
branches:
include:
- master
- cosmos-build-master
paths:
include:
- sdk/cosmosdb/cosmos/*

jobs:
- job: NightlyEmulator
pool:
vmImage: vs2017-win2016
steps:
- task: azure-cosmosdb.emulator-internal-preview.run-cosmosdbemulatorcontainer.CosmosDbEmulator@2
displayName: "Run Azure Cosmos DB Emulator container"
inputs:
username: "$(cosmos-cosmosdb-azurecr-io-username)"
password: "$(cosmos-cosmosdb-azurecr-io-password)"
defaultPartitionCount: 25
- task: NodeTool@0
inputs:
versionSpec: "6.x"
displayName: "Install Node.js"

- script: npm run install-client-cosmos
displayName: "npm install"

- script: npm run build-client-cosmos
displayName: "npm run build"

- bash: cd sdk/cosmosdb/cosmos && ACCOUNT_HOST=$COSMOSDBEMULATOR_ENDPOINT NODE_TLS_REJECT_UNAUTHORIZED="0" npm run test -- --reporter mocha-multi-reporters --reporter-options spec=-,mocha-junit-reporter=- $(AdditionalTestArguments)
failOnStderr: true
displayName: "npm test"
env:
MOCHA_TIMEOUT: 100000

- task: PublishTestResults@2
inputs:
testResultsFiles: '**/xunit.xml'
testRunTitle: 'Cosmos $(OSName) Node $(NodeVersion) - Node'
condition: succeededOrFailed()
displayName: 'Publish node test results'
55 changes: 55 additions & 0 deletions sdk/cosmosdb/cosmos/.azure-pipelines/cosmos.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript

trigger:
branches:
include:
- master
- cosmos-build-master
paths:
include:
- sdk/cosmosdb/cosmos/*

pr:
branches:
include:
- master
- cosmos-build-master
paths:
include:
- sdk/cosmosdb/cosmos/*

jobs:
- job: Emulator
pool:
vmImage: vs2017-win2016
steps:
- task: azure-cosmosdb.emulator-public-preview.run-cosmosdbemulatorcontainer.CosmosDbEmulator@2
displayName: "Run Azure Cosmos DB Emulator container"
inputs:
defaultPartitionCount: 25
- task: NodeTool@0
inputs:
versionSpec: "6.x"
displayName: "Install Node.js"

- script: npm run install-client-cosmos
displayName: "npm install"

- script: npm run build-client-cosmos
displayName: "npm run build"

- bash: cd sdk/cosmosdb/cosmos && ACCOUNT_HOST=$COSMOSDBEMULATOR_ENDPOINT NODE_TLS_REJECT_UNAUTHORIZED="0" npm run test -- --reporter mocha-multi-reporters --reporter-options spec=-,mocha-junit-reporter=- $(AdditionalTestArguments)
failOnStderr: true
displayName: "npm test"
env:
MOCHA_TIMEOUT: 100000

- task: PublishTestResults@2
inputs:
testResultsFiles: '**/xunit.xml'
testRunTitle: 'Cosmos $(OSName) Node $(NodeVersion) - Node'
condition: succeededOrFailed()
displayName: 'Publish node test results'
16 changes: 16 additions & 0 deletions sdk/cosmosdb/cosmos/.editorConfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# http://editorconfig.org
root = true

[*]
end_of_line = crlf
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.ts]
indent_size = 2
22 changes: 22 additions & 0 deletions sdk/cosmosdb/cosmos/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
Loading