Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sdk automation script #17193

Merged
merged 30 commits into from
Dec 4, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
6dc1aff
Merged commit
Apr 17, 2020
9f2fe05
Add track2 config
Jun 19, 2020
f032822
Update swagger_to_sdk_config.json
Oct 21, 2020
291253b
Merged commit
Apr 17, 2020
e58ca0e
Add track2 config
Jun 19, 2020
8e7de55
Update swagger_to_sdk_config.json
Oct 21, 2020
593b028
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net
ShivangiReja Nov 18, 2020
aa4f21a
Merge branch 'master' of https://github.com/openapi-env-test/azure-sd…
ShivangiReja Nov 18, 2020
2e378bd
Merged commit
Apr 17, 2020
a44ec42
Add track2 config
Jun 19, 2020
6b7f1d1
Update swagger_to_sdk_config.json
Oct 21, 2020
66ac771
Merge branch 'master' of https://github.com/openapi-env-test/azure-sd…
ShivangiReja Nov 19, 2020
29dddd3
Merge branch 'master' of https://github.com/Azure/azure-sdk-for-net
ShivangiReja Nov 19, 2020
cfef820
SDK automation script
ShivangiReja Nov 19, 2020
0bd382c
Add new line
ShivangiReja Nov 19, 2020
1292e42
Add dotnet-install script
ShivangiReja Nov 20, 2020
05c4071
Update script
ShivangiReja Nov 24, 2020
4d02ac6
Update .init script
ShivangiReja Nov 25, 2020
b4231c6
Format scripts
ShivangiReja Nov 25, 2020
6f1f5df
Add new line at the end of the file
ShivangiReja Nov 25, 2020
bb961ae
Nit fix
ShivangiReja Nov 25, 2020
c5ef13f
PR feedback
ShivangiReja Dec 1, 2020
6913ed4
Add ValidateNotNullOrEmpty for input json param
ShivangiReja Dec 1, 2020
e38e727
PR feedback
ShivangiReja Dec 1, 2020
4a66a48
Remove "= $GenerateInput"
ShivangiReja Dec 1, 2020
8bc15b2
PR feedback
ShivangiReja Dec 1, 2020
595dd69
Fix file name
ShivangiReja Dec 1, 2020
21168ee
Fix script path in config
ShivangiReja Dec 2, 2020
8b0ae73
Update schema path
ShivangiReja Dec 2, 2020
fc17611
Update init script sothat it can work in linux env
ShivangiReja Dec 4, 2020
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
5 changes: 2 additions & 3 deletions eng/scripts/Automation-Sdk-Generate.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,13 @@ foreach ($sdkPath in $sdksInfo.Keys) {
$result = "succeeded"
Write-Host "Successfully generated code for" $packageName "`n"

$csprojPath = Get-ChildItem $srcPath -Filter *.csproj -Recurse
dotnet pack $csprojPath /p:RunApiCompat=$false
dotnet pack $srcPath /p:RunApiCompat=$false
if (!$LASTEXITCODE) {
$result = "succeeded"
$artifactsPath = "$RepoRoot/artifacts/packages/Debug/$packageName"
$artifacts += Get-ChildItem $artifactsPath -Filter *.nupkg -Recurse | Select-Object -ExpandProperty FullName | Resolve-Path -Relative

$logs = & dotnet build /nologo $csprojPath /t:RunApiCompat /p:TargetFramework=netstandard2.0 /flp:v=m`;
$logs = & dotnet build /nologo $srcPath /t:RunApiCompat /p:TargetFramework=netstandard2.0 /flp:v=m`;
if (!$LASTEXITCODE) {
$hasBreakingChange = $false
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"$schema": "https://github.com/Azure/azure-rest-api-specs/blob/master/documentation/sdkautomation/SwaggerToSdkConfigSchema.json",
"advancedOptions": {
"createSdkPullRequests": true,
"generationCallMode": "one-for-all-configs"
},
"generateOptions": {
"generateScript": {
"path": "pwsh ./eng/scripts/Automation-Sdk-Generate.ps1"
"path": "pwsh ./scripts/Automation-Sdk-Generate.ps1"
}
},
"initOptions": {
"initScript": {
"path": "pwsh ./eng/scripts/Automation-Sdk-Init.ps1"
"path": "pwsh ./scripts/Automation-Sdk-Init.ps1"
}
}
}