-
Notifications
You must be signed in to change notification settings - Fork 314
[DRAFT] Add Debug CI runs #3589
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,12 @@ parameters: | |
type: string | ||
default: $(Platform) | ||
|
||
- name: configuration | ||
- name: buildConfiguration | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I standardized on this parameter name, values, and default everywhere. |
||
type: string | ||
default: $(Configuration) | ||
default: Debug | ||
values: | ||
- Debug | ||
- Release | ||
|
||
- name: prebuildSteps | ||
type: stepList | ||
|
@@ -47,14 +50,14 @@ jobs: | |
- template: ../steps/ci-project-build-step.yml@self | ||
parameters: | ||
platform: ${{ parameters.platform }} | ||
configuration: ${{ parameters.configuration }} | ||
buildConfiguration: ${{ parameters.buildConfiguration }} | ||
operatingSystem: Windows | ||
build: all | ||
|
||
- template: ../steps/generate-nuget-package-step.yml@self | ||
parameters: | ||
NugetPackageVersion: $(NugetPackageVersion) | ||
configuration: $(Configuration) | ||
buildConfiguration: ${{ parameters.buildConfiguration }} | ||
nuspecPath: 'tools/specs/Microsoft.Data.SqlClient.nuspec' | ||
OutputDirectory: $(packagePath) | ||
generateSymbolsPackage: false | ||
|
@@ -63,7 +66,7 @@ jobs: | |
- template: ../steps/generate-nuget-package-step.yml@self | ||
parameters: | ||
NugetPackageVersion: $(NugetPackageVersion) | ||
configuration: $(Configuration) | ||
buildConfiguration: ${{ parameters.buildConfiguration }} | ||
nuspecPath: 'tools/specs/add-ons/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.nuspec' | ||
OutputDirectory: $(packagePath) | ||
generateSymbolsPackage: false | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,12 @@ parameters: | |
type: string | ||
default: $(AssemblyFileVersion) | ||
|
||
- name: Configuration | ||
- name: buildConfiguration | ||
type: string | ||
default: '$(Configuration)' | ||
default: Debug | ||
values: | ||
- Debug | ||
- Release | ||
|
||
- name: packageRefMdsVersion | ||
type: string | ||
|
@@ -46,5 +49,5 @@ steps: | |
displayName: 'BuildAllConfigurations using build.proj' | ||
inputs: | ||
solution: '**/build.proj' | ||
configuration: '${{parameters.Configuration }}' | ||
configuration: '${{parameters.buildConfiguration }}' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
msbuildArguments: '-p:AssemblyFileVersion=${{parameters.AssemblyFileVersion }} -t:BuildAllConfigurations -p:GenerateNuget=false -p:SigningKeyPath=$(Agent.TempDirectory)\netfxKeypair.snk' |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,12 @@ parameters: | |
type: string | ||
default: $(TargetNetCoreVersion) | ||
|
||
- name: configuration | ||
- name: buildConfiguration | ||
type: string | ||
default: $(Configuration) | ||
default: Debug | ||
values: | ||
- Debug | ||
- Release | ||
|
||
- name: referenceType | ||
default: Project | ||
|
@@ -55,14 +58,14 @@ steps: | |
inputs: | ||
solution: build.proj | ||
msbuildArchitecture: x64 | ||
msbuildArguments: '-p:Configuration=${{parameters.configuration }} -t:BuildAKVNetCore -p:ReferenceType=${{parameters.referenceType }} -p:TestMicrosoftDataSqlClientVersion=${{parameters.NugetPackageVersion }}' | ||
msbuildArguments: '-p:Configuration=${{parameters.buildConfiguration }} -t:BuildAKVNetCore -p:ReferenceType=${{parameters.referenceType }} -p:TestMicrosoftDataSqlClientVersion=${{parameters.NugetPackageVersion }}' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And sometimes for |
||
|
||
- task: MSBuild@1 | ||
displayName: 'MSBuild Build Tests for ${{parameters.TargetNetCoreVersion }}' | ||
inputs: | ||
solution: build.proj | ||
msbuildArchitecture: x64 | ||
msbuildArguments: '-t:BuildTestsNetCore -p:ReferenceType=${{parameters.referenceType }} -p:TargetNetCoreVersion=${{parameters.TargetNetCoreVersion }} -p:TestMicrosoftDataSqlClientVersion=${{parameters.NugetPackageVersion }} -p:Configuration=${{parameters.configuration }}' | ||
msbuildArguments: '-t:BuildTestsNetCore -p:ReferenceType=${{parameters.referenceType }} -p:TargetNetCoreVersion=${{parameters.TargetNetCoreVersion }} -p:TestMicrosoftDataSqlClientVersion=${{parameters.NugetPackageVersion }} -p:Configuration=${{parameters.buildConfiguration }}' | ||
|
||
# Don't run unit tests using package reference. Unit tests are only run using project reference. | ||
|
||
|
@@ -71,12 +74,12 @@ steps: | |
inputs: | ||
command: test | ||
projects: 'src\Microsoft.Data.SqlClient\tests\FunctionalTests\Microsoft.Data.SqlClient.FunctionalTests.csproj' | ||
arguments: '-p:Platform=${{parameters.platform }} -p:TestTargetOS="${{parameters.TestTargetOS }}" -p:TargetNetCoreVersion=${{parameters.TargetNetCoreVersion }} -p:ReferenceType=${{parameters.referenceType }} -p:Configuration=${{parameters.configuration }} -p:TestMicrosoftDataSqlClientVersion=${{parameters.NugetPackageVersion }} --no-build -v n --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests"' | ||
arguments: '-p:Platform=${{parameters.platform }} -p:TestTargetOS="${{parameters.TestTargetOS }}" -p:TargetNetCoreVersion=${{parameters.TargetNetCoreVersion }} -p:ReferenceType=${{parameters.referenceType }} -p:Configuration=${{parameters.buildConfiguration }} -p:TestMicrosoftDataSqlClientVersion=${{parameters.NugetPackageVersion }} --no-build -v n --filter "category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests"' | ||
|
||
- task: DotNetCoreCLI@2 | ||
displayName: 'Run Manual Tests for ${{parameters.TargetNetCoreVersion }}' | ||
inputs: | ||
command: test | ||
projects: 'src\Microsoft.Data.SqlClient\tests\ManualTests\Microsoft.Data.SqlClient.ManualTesting.Tests.csproj' | ||
arguments: '-p:Platform=${{parameters.platform }} -p:TestTargetOS="${{parameters.TestTargetOS }}" -p:TargetNetCoreVersion=${{parameters.TargetNetCoreVersion }} -p:ReferenceType=${{parameters.referenceType }} -p:Configuration=${{parameters.configuration }} -p:TestMicrosoftDataSqlClientVersion=${{parameters.NugetPackageVersion }} --no-build -v n --filter category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests --collect "Code Coverage"' | ||
arguments: '-p:Platform=${{parameters.platform }} -p:TestTargetOS="${{parameters.TestTargetOS }}" -p:TargetNetCoreVersion=${{parameters.TargetNetCoreVersion }} -p:ReferenceType=${{parameters.referenceType }} -p:Configuration=${{parameters.buildConfiguration }} -p:TestMicrosoftDataSqlClientVersion=${{parameters.NugetPackageVersion }} --no-build -v n --filter category!=nonnetcoreapptests&category!=failing&category!=nonwindowstests --collect "Code Coverage"' | ||
retryCountOnTaskFailure: ${{parameters.retryCountOnManualTests }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This job is only used for official release builds, so we hardcode Release here.