File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 44
44
.\build.ps1 -buildNumber "$env:APPVEYOR_BUILD_NUMBER" -includeVersion (!$hasTag)
45
45
after_build :
46
46
- ps : >
47
- Get-ChildItem buildoutput\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName "Binaries" }
47
+ if (!$env:APPVEYOR_PULL_REQUEST_NUMBER) {
48
+ Get-ChildItem buildoutput\*.nupkg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName "Binaries" }
48
49
49
- Get-ChildItem buildoutput\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName "Runtime" }
50
+ Get-ChildItem buildoutput\*.zip | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name -DeploymentName "Runtime" }
51
+ } else {
52
+ Write-Host "Bypassing artifact publishing for pull request." -ForegroundColor Yellow
53
+ }
50
54
test_script :
51
55
- ps : >
52
56
.\run-tests.ps1
Original file line number Diff line number Diff line change @@ -176,9 +176,14 @@ foreach ($project in $projects)
176
176
& dotnet $cmd
177
177
}
178
178
179
+ $bypassPackaging = $env: APPVEYOR_PULL_REQUEST_NUMBER -and -not $env: APPVEYOR_PULL_REQUEST_TITLE.Contains (" [pack]" )
179
180
180
- # build IL extensions
181
- BuildPackages " " $false
181
+ if ($bypassPackaging ){
182
+ Write-Host " Bypassing artifact packaging and CrossGen for pull request." - ForegroundColor Yellow
183
+ } else {
184
+ # build IL extensions
185
+ BuildPackages " " $false
182
186
183
- # build win-x86 extensions
184
- BuildPackages " win-x86" $false
187
+ # build win-x86 extensions
188
+ BuildPackages " win-x86" $false
189
+ }
You can’t perform that action at this time.
0 commit comments