-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a489fe
commit ba3d021
Showing
1 changed file
with
129 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
name: "Azure OpenAPI" | ||
|
||
trigger: none | ||
|
||
variables: | ||
TRAVIS: 'true' | ||
TRAVIS_BRANCH: $(System.PullRequest.TargetBranch) | ||
TRAVIS_PULL_REQUEST: $(System.PullRequest.PullRequestNumber) | ||
TRAVIS_REPO_SLUG: $(Build.Repository.Name) | ||
TRAVIS_PULL_REQUEST_SLUG: $(Build.Repository.Name) | ||
TRAVIS_PULL_REQUEST_SHA: $(Build.SourceVersion) | ||
PR_ONLY: 'true' | ||
|
||
jobs: | ||
|
||
- job: "Syntax" | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
steps: | ||
- script: | | ||
echo TRAVIS: $(TRAVIS) | ||
echo TRAVIS_BRANCH: $(TRAVIS_BRANCH) | ||
echo TRAVIS_REPO_SLUG: $(TRAVIS_REPO_SLUG) | ||
echo TRAVIS_PULL_REQUEST: $(TRAVIS_PULL_REQUEST) | ||
echo TRAVIS_PULL_REQUEST_SLUG: $(TRAVIS_PULL_REQUEST_SLUG) | ||
echo TRAVIS_PULL_REQUEST_SHA: $(TRAVIS_PULL_REQUEST_SHA) | ||
echo PR_ONLY: $(PR_ONLY) | ||
displayName: "Info" | ||
- task: Npm@1 | ||
displayName: 'npm install' | ||
inputs: | ||
verbose: false | ||
- script: 'npm test -- test/syntax.js' | ||
displayName: 'Syntax validation' | ||
|
||
- job: "Semantic" | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
steps: | ||
- task: Npm@1 | ||
displayName: 'npm install' | ||
inputs: | ||
verbose: false | ||
- script: 'npm run tsc && node scripts/semanticValidation.js' | ||
displayName: 'Semantic Validation' | ||
|
||
- job: "ModelValidation" | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
steps: | ||
- task: Npm@1 | ||
displayName: 'npm install' | ||
inputs: | ||
verbose: false | ||
- script: 'npm run tsc && node scripts/modelValidation.js' | ||
displayName: 'Model Validation' | ||
|
||
- job: "Avocado" | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
continueOnError: true | ||
steps: | ||
- task: Npm@1 | ||
displayName: 'npm install' | ||
inputs: | ||
verbose: false | ||
- script: './node_modules/.bin/avocado' | ||
displayName: 'Avocado' | ||
|
||
- job: "BreakingChange" | ||
condition: "not(variables['PRIVATE'])" | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
steps: | ||
- script: 'scripts/install-dotnet.sh' | ||
displayName: 'Insall .Net' | ||
- task: Npm@1 | ||
displayName: 'npm install' | ||
inputs: | ||
verbose: false | ||
- script: 'npm run tsc && node scripts/breaking-change.js' | ||
displayName: 'Breaking Changes' | ||
|
||
- job: "LintDiff" | ||
condition: "not(variables['PRIVATE'])" | ||
variables: | ||
NODE_OPTIONS: '--max-old-space-size=8192' | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
steps: | ||
- task: Npm@1 | ||
displayName: 'npm install' | ||
inputs: | ||
verbose: false | ||
- script: 'scripts/install-dotnet.sh' | ||
displayName: 'install .Net' | ||
- script: 'npm run tsc && node scripts/momentOfTruth.js && node scripts/momentOfTruthPostProcessing.js' | ||
displayName: 'LintDiff' | ||
|
||
- job: "SDK" | ||
timeoutInMinutes: 120 | ||
strategy: | ||
matrix: | ||
ruby: | ||
AZURE_SDK_REPO: azure-sdk-for-ruby | ||
AZURE_SDK_PARAMS: '' | ||
java: | ||
AZURE_SDK_REPO: azure-sdk-for-java | ||
AZURE_SDK_PARAMS: '' | ||
javascript: | ||
AZURE_SDK_REPO: azure-sdk-for-js | ||
AZURE_SDK_PARAMS: '' | ||
node: | ||
AZURE_SDK_REPO: azure-sdk-for-node | ||
AZURE_SDK_PARAMS: '' | ||
python: | ||
AZURE_SDK_REPO: azure-sdk-for-python | ||
AZURE_SDK_PARAMS: '' | ||
go: | ||
AZURE_SDK_REPO: azure-sdk-for-go | ||
AZURE_SDK_PARAMS: '-o latest' | ||
pool: | ||
vmImage: 'Ubuntu 16.04' | ||
variables: | ||
NODE_OPTIONS: '--max-old-space-size=8192' | ||
steps: | ||
- script: echo $(NODE_OPTIONS) | ||
- script: "scripts/swagger-to-sdk.sh Azure/$(AZURE_SDK_REPO) -v $(AZURE_SDK_PARAMS)" | ||
displayName: "Swagger to SDK script" |