11variables :
2- DotNetCoreSdkVersion : ' 8 .x'
2+ DotNetCoreSdkVersion : ' 9 .x'
33 NUGET_PACKAGES : ' $(Pipeline.Workspace)/.nuget/packages'
44
55jobs :
1616 vmimage : ' windows-latest'
1717 steps :
1818 - template : ' .ci/build-steps.yml'
19- - task : DotNetCoreCLI@2
20- displayName : ' Publish IntegrationTests (net472)'
21- inputs :
22- command : ' publish'
23- arguments : ' -c Release -f net472 tests/IntegrationTests/IntegrationTests.csproj'
24- publishWebProjects : false
25- zipAfterPublish : false
26- - task : PublishPipelineArtifact@0
27- inputs :
28- artifactName : ' IntegrationTests-net472-$(Agent.OS)'
29- targetPath : ' artifacts/publish/IntegrationTests/release_net472'
3019
3120- job : windows_mysql_data
3221 displayName : ' MySql.Data Tests'
4130 contents : ' config.json'
4231 targetFolder : ' tests/IntegrationTests'
4332 - task : UseDotNet@2
44- displayName : ' Install .NET 7 .0'
33+ displayName : ' Install .NET 8 .0'
4534 inputs :
46- version : ' 7 .0.x'
35+ version : ' 8 .0.x'
4736 - task : UseDotNet@2
4837 displayName : ' Install .NET'
4938 inputs :
9180 vmimage : ' windows-2019'
9281 steps :
9382 - template : ' .ci/install-mysql-windows.yml'
94- - task : UseDotNet@2
95- displayName : ' Install .NET Core 3.1'
96- inputs :
97- version : 3.1.x
98- packageType : runtime
9983 - template : ' .ci/mysqlconnector-tests-steps.yml'
10084 - template : ' .ci/conformance-test-steps.yml'
10185 parameters :
@@ -123,18 +107,18 @@ jobs:
123107 displayName : ' Remove target frameworks'
124108 inputs :
125109 targetType : ' inline'
126- script : ' ((Get-Content .\tests\IntegrationTests\IntegrationTests.csproj -Raw) -replace('' <TargetFrameworks>.*</TargetFrameworks>'' , '' <TargetFrameworks>net472;net8 .0</TargetFrameworks>'' )) | Set-Content .\tests\IntegrationTests\IntegrationTests.csproj'
110+ script : ' ((Get-Content .\tests\IntegrationTests\IntegrationTests.csproj -Raw) -replace('' <TargetFrameworks>.*</TargetFrameworks>'' , '' <TargetFrameworks>net481;net9 .0</TargetFrameworks>'' )) | Set-Content .\tests\IntegrationTests\IntegrationTests.csproj'
127111 - task : DotNetCoreCLI@2
128112 displayName : ' Restore packages'
129113 inputs :
130114 command : ' restore'
131115 - task : DotNetCoreCLI@2
132- displayName : ' Integration tests (net472/net8 .0)'
116+ displayName : ' Integration tests (net481/net9 .0)'
133117 inputs :
134118 command : ' test'
135119 projects : ' tests/IntegrationTests/IntegrationTests.csproj'
136- arguments : ' -c Release --no-restore'
137- testRunTitle : ${{ format('{0}, $(Agent.OS), {1}, {2}', 'mysql:8.0', 'net472/net8 .0', 'No SSL') }}
120+ arguments : ' -c Release --no-restore -p:TestTfmsInParallel=false '
121+ testRunTitle : ${{ format('{0}, $(Agent.OS), {1}, {2}', 'mysql:8.0', 'net481/net9 .0', 'No SSL') }}
138122 env :
139123 DATA__UNSUPPORTEDFEATURES : ' Ed25519,QueryAttributes,Redirection,StreamingResults,Tls11,TlsFingerprintValidation,UnixDomainSocket'
140124 DATA__CONNECTIONSTRING : ' server=localhost;port=3306;user id=mysqltest;password=test;database=mysqltest;ssl mode=none;DefaultCommandTimeout=3600;AllowPublicKeyRetrieval=True;UseCompression=True'
@@ -146,9 +130,9 @@ jobs:
146130 steps :
147131 - template : ' .ci/install-mysql-windows.yml'
148132 - task : UseDotNet@2
149- displayName : ' Install .NET 6 .0'
133+ displayName : ' Install .NET 8 .0'
150134 inputs :
151- version : 6 .0.x
135+ version : 8 .0.x
152136 packageType : runtime
153137 - task : UseDotNet@2
154138 displayName : ' Install .NET'
@@ -161,18 +145,18 @@ jobs:
161145 displayName : ' Remove target frameworks'
162146 inputs :
163147 targetType : ' inline'
164- script : ' ((Get-Content .\tests\IntegrationTests\IntegrationTests.csproj -Raw) -replace('' <TargetFrameworks>.*</TargetFrameworks>'' , '' <TargetFrameworks>net6 .0</TargetFrameworks>'' )) | Set-Content .\tests\IntegrationTests\IntegrationTests.csproj'
148+ script : ' ((Get-Content .\tests\IntegrationTests\IntegrationTests.csproj -Raw) -replace('' <TargetFrameworks>.*</TargetFrameworks>'' , '' <TargetFrameworks>net8 .0</TargetFrameworks>'' )) | Set-Content .\tests\IntegrationTests\IntegrationTests.csproj'
165149 - task : DotNetCoreCLI@2
166150 displayName : ' Restore packages'
167151 inputs :
168152 command : ' restore'
169153 - task : DotNetCoreCLI@2
170- displayName : ' Integration tests (net6 .0)'
154+ displayName : ' Integration tests (net8 .0)'
171155 inputs :
172156 command : ' test'
173157 projects : ' tests/IntegrationTests/IntegrationTests.csproj'
174- arguments : ' -c Release --no-restore'
175- testRunTitle : ${{ format('{0}, $(Agent.OS), {1}, {2}', 'mysql:8.0', 'net6 .0', 'No SSL') }}
158+ arguments : ' -c Release --no-restore -p:TestTfmsInParallel=false '
159+ testRunTitle : ${{ format('{0}, $(Agent.OS), {1}, {2}', 'mysql:8.0', 'net8 .0', 'No SSL') }}
176160 env :
177161 DATA__UNSUPPORTEDFEATURES : ' Ed25519,QueryAttributes,Redirection,StreamingResults,Tls11,TlsFingerprintValidation,UnixDomainSocket'
178162 DATA__CONNECTIONSTRING : ' server=localhost;port=3306;user id=mysqltest;password=test;database=mysqltest;ssl mode=none;DefaultCommandTimeout=3600;AllowPublicKeyRetrieval=True'
0 commit comments