forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pipelines and setup for cosmos sdk (#16)
* resolve merge conflict - tsconfig.json * add cosmos in rush.json * update dependencies - sync-versions * add script "extract-api" * delete .prettierrc * update package.json script commands * npm run bundle command * Fix typo in samples/package.json * npm run clean command * remove unrelated file .gitattributes * Update package.json repo links * add ci.yml from cosmos v2 * Node 6 to Node 8 - integration step * azure-cosmos-js -> azure-sdk-for-js * Update License document * update tool chain from npm to rush * add package name * delete package-lock.json * add cosmos-additional-steps.yml file * add PostIntegrationSteps variable * condition: succeededOrFailed() for additional steps * add parameters PackageName and PackagePath * Smaller Matrix for Unit tests as per Daniel's idea * parameters - fix typo * regenerate pnpm-lock file * test:consumer -> test-consumer * remove matrix for unit-tests
- Loading branch information
1 parent
68e9d57
commit 066aad7
Showing
10 changed files
with
135 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
parameters: | ||
PackagePath: "sdk/cosmosdb/cosmos/" | ||
PackageName: "@azure/cosmos" | ||
|
||
steps: | ||
- script: | | ||
node common/scripts/install-run-rush.js test-consumer -t "${{parameters.PackageName}}" --verbose | ||
condition: succeededOrFailed() | ||
displayName: "TypeScript Consumer Tests - Cosmos" | ||
- script: | | ||
node common/scripts/install-run-rush.js build:samples -t "${{parameters.PackageName}}" --verbose | ||
condition: succeededOrFailed() | ||
displayName: "Typecheck Samples - Cosmos" | ||
- script: | | ||
npm run execute:samples | ||
condition: succeededOrFailed() | ||
displayName: "Run Samples - Cosmos" | ||
workingDirectory: "${{parameters.PackagePath}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# DO NOT EDIT THIS FILE | ||
# This file is generated automatically and any changes will be lost. | ||
|
||
trigger: | ||
branches: | ||
include: | ||
- master | ||
- feature/* | ||
paths: | ||
include: | ||
- sdk/cosmosdb/ | ||
|
||
pr: | ||
branches: | ||
include: | ||
- master | ||
- feature/* | ||
paths: | ||
include: | ||
- sdk/cosmosdb/ | ||
|
||
jobs: | ||
- template: ../../eng/pipelines/templates/jobs/archetype-sdk-client.yml | ||
parameters: | ||
# Unit-tests are being skipped. So, matrix is not needed. | ||
Matrix: {} | ||
ServiceDirectory: cosmosdb | ||
|
||
- template: ../../eng/pipelines/templates/jobs/archetype-sdk-integration.yml | ||
parameters: | ||
PackagePath: "sdk/cosmosdb/cosmos/" | ||
PackageName: "@azure/cosmos" | ||
Toolchain: rush | ||
Matrix: | ||
Windows_Node8: | ||
OSVmImage: "vs2017-win2016" | ||
NodeVersion: "8.x" | ||
TestType: "node" | ||
PreIntegrationSteps: cosmos-integration-public | ||
PostIntegrationSteps: cosmos-additional-steps | ||
EnvVars: | ||
ACCOUNT_HOST: $(CosmosDbEmulator.Endpoint) | ||
MOCHA_TIMEOUT: 100000 | ||
NODE_TLS_REJECT_UNAUTHORIZED: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters