-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update mgmt yml file to be closer to client yml file still needs to be separate until we can get the mgmt tooling to work with dotnet pack/test commands. Added eng/mgmt.proj which builds all mangment libraries. Updated root build.proj to include both mgmt and client libraries. Remove init step from old mgmt.yml as it is needed any longer Add scope path validation Add support for publishing property
- Loading branch information
1 parent
776d57d
commit 4958579
Showing
7 changed files
with
102 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
<Project DefaultTargets="Init" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="Directory.Build.props" /> | ||
<Import Project="Directory.Build.targets" /> | ||
<Project Sdk="Microsoft.Build.Traversal"> | ||
<ItemGroup> | ||
<ProjectReference Include="eng\mgmt.proj"> | ||
<AdditionalProperties Condition="'$(Scope)' != ''">Scope=$(Scope)</AdditionalProperties> | ||
</ProjectReference> | ||
<ProjectReference Include="eng\service.proj"> | ||
<AdditionalProperties Condition="'$(Scope)' != ''">Scope=$(Scope)</AdditionalProperties> | ||
</ProjectReference> | ||
</ItemGroup> | ||
</Project> |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
<Project DefaultTargets="Build" InitialTargets="VerifyScope" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="..\Directory.Build.props" /> | ||
<Import Project="..\Directory.Build.targets" /> | ||
|
||
<Target Name="VerifyScope"> | ||
<PropertyGroup> | ||
<ScopePath>..\sdk\$(Scope)</ScopePath> | ||
</PropertyGroup> | ||
<Error Condition="!Exists('$(ScopePath)')" Text="Scope [$(Scope)] does not exists please specify a path relative to the sdk root directory (i.e. compute, keyvault, etc)" /> | ||
</Target> | ||
</Project> |
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,10 @@ | ||
# DO NOT EDIT THIS FILE | ||
# This file is generated automatically and any changes will be lost. | ||
|
||
trigger: none | ||
pr: none | ||
|
||
jobs: | ||
- template: templates/jobs/archetype-sdk-mgmt.yml | ||
parameters: | ||
Scope: $(Scope) |
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,67 @@ | ||
jobs: | ||
- job: Build | ||
variables: | ||
DotNetCoreSDKVersion: '2.2.202' | ||
skipComponentGovernanceDetection: true | ||
pool: | ||
vmImage: windows-2019 | ||
steps: | ||
- task: DotNetCoreInstaller@0 | ||
displayName: 'Use .NET Core sdk $(DotNetCoreSDKVersion)' | ||
inputs: | ||
version: '$(DotNetCoreSDKVersion)' | ||
- script: dotnet msbuild eng/mgmt.proj /t:CreateNugetPackage /p:PackageOutputPath=$(Build.ArtifactStagingDirectory) /p:Scope=${{parameters.Scope}} /p:ForPublishing=$(ShouldPublish) | ||
displayName: "Build & Package" | ||
env: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
DOTNET_MULTILEVEL_LOOKUP: 0 | ||
- task: PublishPipelineArtifact@0 | ||
condition: succeededOrFailed() | ||
inputs: | ||
artifactName: packages | ||
targetPath: $(Build.ArtifactStagingDirectory) | ||
- powershell: | | ||
$releaseTag = "FOR_SIGNING" | ||
if ("$(ShouldPublish)" -eq "true") { $releaseTag = "FOR_PUBLISHING" } | ||
echo "Tagging build with $releaseTag" | ||
echo "##vso[build.addbuildtag]$releaseTag" | ||
displayName: 'Tagging the build' | ||
- job: Test | ||
variables: | ||
DotNetCoreSDKVersion: '2.2.202' | ||
skipComponentGovernanceDetection: true | ||
strategy: | ||
maxParallel: $[ variables['MaxParallelTestJobs'] ] | ||
matrix: | ||
Linux: | ||
OSName: "Linux" | ||
OSVmImage: "ubuntu-16.04" | ||
Windows: | ||
OSName: "Windows" | ||
OSVmImage: "windows-2019" | ||
MacOs: | ||
OSName: "MacOS" | ||
OSVmImage: "macOS-10.13" | ||
pool: | ||
vmImage: "$(OSVmImage)" | ||
steps: | ||
- task: DotNetCoreInstaller@0 | ||
|
||
displayName: 'Use .NET Core sdk $(DotNetCoreSDKVersion)' | ||
inputs: | ||
version: '$(DotNetCoreSDKVersion)' | ||
- script: dotnet msbuild eng/mgmt.proj /t:RunTests /p:Scope=${{parameters.Scope}} /p:ForPublishing=$(ShouldPublish) | ||
displayName: "Build & Test" | ||
env: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
DOTNET_MULTILEVEL_LOOKUP: 0 | ||
- task: PublishTestResults@2 | ||
condition: succeededOrFailed() | ||
inputs: | ||
testResultsFiles: "**/*.trx" | ||
testRunTitle: "$(OSName) Test Results" | ||
testResultsFormat: "VSTest" | ||
mergeTestResults: true |
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