Skip to content

Commit 4c72063

Browse files
authored
Stop running test in official build and PrivateDev (#6938)
1 parent 3ac5f0b commit 4c72063

11 files changed

Lines changed: 5 additions & 735 deletions

eng/pipelines/ci.yml

Lines changed: 0 additions & 76 deletions
This file was deleted.

eng/pipelines/official.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,6 @@ parameters:
33
displayName: Build bits for publishing
44
type: boolean
55
default: true
6-
- name: RunCrossFrameworkTestsOnWindows
7-
displayName: Run cross framework tests on Windows
8-
type: boolean
9-
default: false
10-
- name: RunUnitTestsOnWindows
11-
displayName: Run unit tests on Windows
12-
type: boolean
13-
default: false
14-
- name: RunFunctionalTestsOnWindows
15-
displayName: Run functional tests on Windows
16-
type: boolean
17-
default: false
18-
- name: RunSourceBuild
19-
displayName: Run source build
20-
type: boolean
21-
default: false
22-
- name: RunTestsOnLinux
23-
displayName: Run tests on Linux
24-
type: boolean
25-
default: false
26-
- name: RunTestsOnMac
27-
displayName: Run tests on Mac
28-
type: boolean
29-
default: false
30-
- name: RunMonoTestsOnMac
31-
displayName: Run Mono tests on Mac
32-
type: boolean
33-
default: false
34-
- name: RunStaticAnalysis
35-
displayName: Run static analysis
36-
type: boolean
37-
default: false
386
- name: SigningType
397
displayName: Type of signing to use
408
type: string
@@ -57,14 +25,6 @@ variables:
5725
Codeql.Enabled: true
5826
Codeql.TSAEnabled: true
5927
RunBuildForPublishing: ${{ parameters.RunBuildForPublishing }}
60-
RunCrossFrameworkTestsOnWindows: ${{ parameters.RunCrossFrameworkTestsOnWindows }}
61-
RunUnitTestsOnWindows: ${{ parameters.RunUnitTestsOnWindows }}
62-
RunFunctionalTestsOnWindows: ${{ parameters.RunFunctionalTestsOnWindows }}
63-
RunSourceBuild: ${{ parameters.RunSourceBuild }}
64-
RunTestsOnLinux: ${{ parameters.RunTestsOnLinux }}
65-
RunTestsOnMac: ${{ parameters.RunTestsOnMac }}
66-
RunMonoTestsOnMac: ${{ parameters.RunMonoTestsOnMac }}
67-
RunStaticAnalysis: ${{ parameters.RunStaticAnalysis }}
6828
SourceBranch: $[replace(variables['Build.SourceBranch'], 'refs/heads/', '')]
6929

7030
extends:
@@ -96,12 +56,4 @@ extends:
9656
${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/dev'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')) }}:
9757
RunOneLocBuild: true
9858
RunBuildForPublishing: ${{parameters.RunBuildForPublishing}}
99-
RunCrossFrameworkTestsOnWindows: ${{parameters.RunCrossFrameworkTestsOnWindows}}
100-
RunUnitTestsOnWindows: ${{parameters.RunUnitTestsOnWindows}}
101-
RunFunctionalTestsOnWindows: ${{parameters.RunFunctionalTestsOnWindows}}
102-
RunSourceBuild: ${{parameters.RunSourceBuild}}
103-
RunTestsOnLinux: ${{parameters.RunTestsOnLinux}}
104-
RunTestsOnMac: ${{parameters.RunTestsOnMac}}
105-
RunMonoTestsOnMac: ${{parameters.RunMonoTestsOnMac}}
106-
RunStaticAnalysis: ${{parameters.RunStaticAnalysis}}
10759
SigningType: ${{ parameters.SigningType }}

eng/pipelines/pull_request.yml

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,6 @@ parameters:
33
displayName: Build bits for publishing
44
type: boolean
55
default: true
6-
- name: RunCrossFrameworkTestsOnWindows
7-
displayName: Run cross framework tests on Windows
8-
type: boolean
9-
default: false
10-
- name: RunUnitTestsOnWindows
11-
displayName: Run unit tests on Windows
12-
type: boolean
13-
default: false
14-
- name: RunFunctionalTestsOnWindows
15-
displayName: Run functional tests on Windows
16-
type: boolean
17-
default: false
18-
- name: RunSourceBuild
19-
displayName: Run source build
20-
type: boolean
21-
default: false
22-
- name: RunTestsOnLinux
23-
displayName: Run tests on Linux
24-
type: boolean
25-
default: false
26-
- name: RunTestsOnMac
27-
displayName: Run tests on Mac
28-
type: boolean
29-
default: false
30-
- name: RunMonoTestsOnMac
31-
displayName: Run Mono tests on Mac
32-
type: boolean
33-
default: false
34-
- name: RunStaticAnalysis
35-
displayName: Run static analysis
36-
type: boolean
37-
default: false
386
- name: SigningType
397
displayName: Type of signing to use
408
type: string
@@ -54,14 +22,6 @@ variables:
5422
Codeql.Enabled: false
5523
Codeql.TSAEnabled: false
5624
RunBuildForPublishing: ${{ parameters.RunBuildForPublishing }}
57-
RunCrossFrameworkTestsOnWindows: ${{ parameters.RunCrossFrameworkTestsOnWindows }}
58-
RunUnitTestsOnWindows: ${{ parameters.RunUnitTestsOnWindows }}
59-
RunFunctionalTestsOnWindows: ${{ parameters.RunFunctionalTestsOnWindows }}
60-
RunSourceBuild: ${{ parameters.RunSourceBuild }}
61-
RunTestsOnLinux: ${{ parameters.RunTestsOnLinux }}
62-
RunTestsOnMac: ${{ parameters.RunTestsOnMac }}
63-
RunMonoTestsOnMac: ${{ parameters.RunMonoTestsOnMac }}
64-
RunStaticAnalysis: ${{ parameters.RunStaticAnalysis }}
6525
SourceBranch: $[replace(variables['Build.SourceBranch'], 'refs/heads/', '')]
6626

6727
extends:
@@ -90,12 +50,4 @@ extends:
9050
- template: /eng/pipelines/templates/pipeline.yml@self
9151
parameters:
9252
RunBuildForPublishing: ${{parameters.RunBuildForPublishing}}
93-
RunCrossFrameworkTestsOnWindows: ${{parameters.RunCrossFrameworkTestsOnWindows}}
94-
RunUnitTestsOnWindows: ${{parameters.RunUnitTestsOnWindows}}
95-
RunFunctionalTestsOnWindows: ${{parameters.RunFunctionalTestsOnWindows}}
96-
RunSourceBuild: ${{parameters.RunSourceBuild}}
97-
RunTestsOnLinux: ${{parameters.RunTestsOnLinux}}
98-
RunTestsOnMac: ${{parameters.RunTestsOnMac}}
99-
RunMonoTestsOnMac: ${{parameters.RunMonoTestsOnMac}}
100-
RunStaticAnalysis: ${{parameters.RunStaticAnalysis}}
10153
SigningType: ${{ parameters.SigningType }}

eng/pipelines/templates/Build_and_UnitTest.yml renamed to eng/pipelines/templates/Build.yml

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
parameters:
22
- name: BuildRTM
33
type: boolean
4-
- name: RunUnitTests
5-
displayName: Run unit tests
6-
type: boolean
7-
default: true
84
- name: SigningType
95
displayName: Type of signing to use
106
type: string
@@ -122,45 +118,6 @@ steps:
122118
displayName: Finalize CodeQL
123119
condition: "and(succeeded(), eq(variables['BuildRTM'], 'true'), eq(variables['Codeql.Enabled'], 'true'))"
124120

125-
- task: MSBuild@1
126-
displayName: "Publish NuGet.exe (ILMerged) into NuGet.CommandLine.Test (Mac tests use this)"
127-
inputs:
128-
solution: "test\\NuGet.Clients.Tests\\NuGet.CommandLine.Test\\NuGet.CommandLine.Test.csproj"
129-
configuration: "$(BuildConfiguration)"
130-
msbuildArguments: "/restore:false /target:CopyFinalNuGetExeToOutputPath /binarylogger:$(Build.StagingDirectory)\\binlog\\06.CopyFinalNuGetExeToOutputPath.binlog"
131-
condition: "and(succeeded(),eq(variables['BuildRTM'], 'false'), ne(variables['RunMonoTestsOnMac'], 'false'))"
132-
133-
- ${{ if eq(parameters.RunUnitTests, true) }}:
134-
- task: MSBuild@1
135-
displayName: "Run unit tests (stop on error)"
136-
continueOnError: "false"
137-
inputs:
138-
solution: "build\\build.proj"
139-
configuration: "$(BuildConfiguration)"
140-
msbuildArguments: "/restore:false /target:CoreUnitTests;UnitTestsVS /property:BuildRTM=$(BuildRTM) /property:BuildNumber=$(BuildNumber) /property:SkipILMergeOfNuGetExe=true /binarylogger:$(Build.StagingDirectory)\\binlog\\07.RunUnitTests.binlog"
141-
condition: "and(succeeded(), eq(variables['BuildRTM'], 'true'), not(eq(variables['IsOfficialBuild'], 'true')))"
142-
143-
- ${{ if eq(parameters.RunUnitTests, true) }}:
144-
- task: MSBuild@1
145-
displayName: "Run unit tests (continue on error)"
146-
continueOnError: "true"
147-
inputs:
148-
solution: "build\\build.proj"
149-
configuration: "$(BuildConfiguration)"
150-
msbuildArguments: "/restore:false /target:CoreUnitTests;UnitTestsVS /property:BuildRTM=$(BuildRTM) /property:BuildNumber=$(BuildNumber) /property:SkipILMergeOfNuGetExe=true /binarylogger:$(Build.StagingDirectory)\\binlog\\08.RunUnitTests.binlog"
151-
condition: "and(succeeded(), eq(variables['BuildRTM'], 'true'), eq(variables['IsOfficialBuild'], 'true'))"
152-
153-
- ${{ if eq(parameters.RunUnitTests, true) }}:
154-
- task: PublishTestResults@2
155-
displayName: "Publish Test Results"
156-
inputs:
157-
testRunner: "VSTest"
158-
testResultsFiles: "*.trx"
159-
testRunTitle: "NuGet.Client Unit Tests On Windows"
160-
searchFolder: "$(Build.Repository.LocalPath)\\build\\TestResults"
161-
publishRunAttachments: "false"
162-
condition: "and(succeededOrFailed(),eq(variables['BuildRTM'], 'true'))"
163-
164121
- task: MSBuild@1
165122
displayName: "Pack Nupkgs"
166123
inputs:

eng/pipelines/templates/CrossFramework_Tests_On_Windows.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

eng/pipelines/templates/Functional_Tests_On_Windows.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

eng/pipelines/templates/Source_Build.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)