Skip to content

Commit bf80d40

Browse files
authored
Merge pull request #4 from Azure/master
Rebase fork
2 parents c3fd952 + 3abf6da commit bf80d40

File tree

4,814 files changed

+450664
-50303
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,814 files changed

+450664
-50303
lines changed

.azure-pipelines-preproduction/package-lock.json

Lines changed: 5760 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "azure-rest-api-specs-tests",
3+
"private": true,
4+
"author": {
5+
"name": "Microsoft Corporation",
6+
"email": "[email protected]",
7+
"url": "https://github.com/azure/azure-rest-api-specs"
8+
},
9+
"version": "0.1.0",
10+
"description": "Tests for Azure REST API Specifications",
11+
"license": "MIT",
12+
"devDependencies": {
13+
"@azure/avocado": "^0.6.0",
14+
"@azure/rest-api-specs-scripts": "^0.5.1",
15+
"@ts-common/commonmark-to-markdown": "^1.2.0",
16+
"@ts-common/fs": "0.2.0",
17+
"@ts-common/iterator": "^0.3.6",
18+
"@types/js-yaml": "^3.12.1",
19+
"@types/mocha": "^5.2.6",
20+
"cspell": "^4.0.12",
21+
"js-yaml": "^3.13.1",
22+
"json-schema-ref-parser": "^6.1.0",
23+
"mocha": "*",
24+
"ts-node": "^8.1.0",
25+
"tslib": "^1.10.0",
26+
"typescript": "3.5.3"
27+
},
28+
"homepage": "https://github.com/azure/azure-rest-api-specs",
29+
"repository": {
30+
"type": "git",
31+
"url": "[email protected]:azure/azure-rest-api-specs.git"
32+
},
33+
"bugs": {
34+
"url": "https://github.com/azure/azure-rest-api-specs/issues"
35+
},
36+
"scripts": {
37+
"test": "tsc && mocha -t 500000 --reporter min",
38+
"spellcheck": "ts-node ./scripts/spellcheck.ts",
39+
"tsc": "tsc",
40+
"multiapi": "ts-node ./scripts/multiapi.ts"
41+
}
42+
}

.azure-pipelines/Avocado.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
jobs:
2+
- job: "Avocado"
3+
pool:
4+
vmImage: 'Ubuntu 16.04'
5+
steps:
6+
- task: Npm@1
7+
displayName: 'npm install'
8+
inputs:
9+
verbose: false
10+
- script: './node_modules/.bin/avocado'
11+
displayName: 'Avocado'
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
jobs:
2+
- job: "BranchProtectionForPrivateRepo"
3+
pool:
4+
vmImage: 'Ubuntu 16.04'
5+
condition: and(variables['PRIVATE'], eq(variables['System.PullRequest.TargetBranch'], 'master'))
6+
steps:
7+
- script: '>&2 echo "the branch is protected"'
8+
failOnStderr: true
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
jobs:
2+
- job: "BreakingChange"
3+
pool:
4+
vmImage: 'Ubuntu 16.04'
5+
steps:
6+
- script: 'scripts/install-dotnet.sh'
7+
displayName: 'Install .Net'
8+
- task: Npm@1
9+
displayName: 'npm install'
10+
inputs:
11+
verbose: false
12+
- script: 'npm run tsc && node scripts/breaking-change.js'
13+
displayName: 'Breaking Changes'

.azure-pipelines/LintDiff.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
jobs:
2+
- job: "LintDiff"
3+
variables:
4+
NODE_OPTIONS: '--max-old-space-size=8192'
5+
pool:
6+
vmImage: 'Ubuntu 16.04'
7+
steps:
8+
- task: Npm@1
9+
displayName: 'npm install'
10+
inputs:
11+
verbose: false
12+
- script: 'scripts/install-dotnet.sh'
13+
displayName: 'install .Net'
14+
- script: 'npm run tsc && node scripts/momentOfTruth.js && node scripts/momentOfTruthPostProcessing.js'
15+
displayName: 'LintDiff'
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
jobs:
2+
- job: "ModelValidation"
3+
pool:
4+
vmImage: 'Ubuntu 16.04'
5+
steps:
6+
- task: Npm@1
7+
displayName: 'npm install'
8+
inputs:
9+
verbose: false
10+
- script: 'npm run tsc && node scripts/modelValidation.js'
11+
displayName: 'Model Validation'
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
jobs:
2+
- job: "NetworkValidation"
3+
condition: and(startsWith(variables['System.PullRequest.TargetBranch'], 'network-'), endsWith(variables['System.PullRequest.TargetBranch'], '-release'))
4+
continueOnError: true
5+
pool:
6+
vmImage: vs2017-win2016
7+
variables:
8+
NRP_SWAGGER_VALIDATION_OVERRIDE_PS_BRANCH: 'true'
9+
NRP_BUILD_TOOLS_SKIP_GENERATE_PS1: 'true'
10+
NRP_BUILD_TOOLS_OUTPUT_PATH: '$(System.DefaultWorkingDirectory)\Out'
11+
steps:
12+
- powershell: |
13+
& "C:/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX 4.6.1 Tools/sn.exe" -Vr *,31bf3856ad364e35
14+
displayName: Bypass Strong Name validation
15+
- task: NodeTool@0
16+
inputs:
17+
versionSpec: 10.x
18+
displayName: Install Node.js
19+
- script: npm install autorest -g
20+
displayName: Install autorest
21+
- script: git clone --depth 1 -- https://dev.azure.com/v-anevse/BuildScripts/_git/BuildScripts ..\BuildScripts
22+
displayName: Clone build tools
23+
- powershell: |
24+
$swgrPath = (Get-Item ".\").FullName
25+
$outputPath = $env:NRP_BUILD_TOOLS_OUTPUT_PATH
26+
New-Item -Path $outputPath -ItemType "Directory" -Force | Out-Null
27+
..\BuildScripts\Test-SwaggerRelease.ps1 -Component Network -SwaggerRepoPath $swgrPath -OutputFolder $outputPath
28+
failOnStderr: false
29+
displayName: Test Swagger updates
30+
- powershell: |
31+
Copy-Item "..\BuildScripts\.azure-pipelines\.artifactignore" -Destination "$($env:NRP_BUILD_TOOLS_OUTPUT_PATH)\.artifactignore" -Force -ErrorAction "SilentlyContinue"
32+
failOnStderr: false
33+
condition: always()
34+
displayName: Copy .artifactignore
35+
- task: PublishPipelineArtifact@0
36+
condition: always()
37+
inputs:
38+
artifactName: SwaggerTestOutput
39+
targetPath: $(NRP_BUILD_TOOLS_OUTPUT_PATH)

.azure-pipelines/Semantic.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
jobs:
2+
- job: "Semantic"
3+
pool:
4+
vmImage: 'Ubuntu 16.04'
5+
steps:
6+
- task: Npm@1
7+
displayName: 'npm install'
8+
inputs:
9+
verbose: false
10+
- script: 'npm run tsc && node scripts/semanticValidation.js'
11+
displayName: 'Semantic Validation'

.azure-pipelines/Spellcheck.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
jobs:
2+
- job: "Spellcheck"
3+
condition: "not(variables['PRIVATE'])"
4+
variables:
5+
NODE_OPTIONS: '--max-old-space-size=8192'
6+
pool:
7+
vmImage: 'Ubuntu 16.04'
8+
continueOnError: true
9+
steps:
10+
- task: Npm@1
11+
displayName: 'npm install'
12+
inputs:
13+
verbose: false
14+
- script: 'npm run spellcheck'
15+
displayName: 'Run cSpell'

0 commit comments

Comments
 (0)