Skip to content

Commit ae05395

Browse files
committed
Trim down scripts
This removes scripts that came from Library.Template that don't really apply to libgit2sharp, or could be added later as their own focused change.
1 parent ddd4998 commit ae05395

14 files changed

+3
-246
lines changed

azure-pipelines.yml

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
trigger:
2-
branches:
3-
include:
4-
- master
5-
- 'maint.*'
6-
paths:
7-
exclude:
8-
- doc/
9-
- '*.md'
10-
- .vscode/
2+
- master
3+
- maint/*
114

125
variables:
136
TreatWarningsAsErrors: true

azure-pipelines/Convert-PDB.ps1

-37
This file was deleted.

azure-pipelines/Get-NuGetTool.ps1

-22
This file was deleted.

azure-pipelines/Get-TempToolsPath.ps1

-13
This file was deleted.

azure-pipelines/Get-nbgv.ps1

-24
This file was deleted.

azure-pipelines/build.yml

-14
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,20 @@ jobs:
55
- job: Windows
66
pool: ${{ parameters.windowsPool }}
77
steps:
8-
- checkout: self
9-
clean: true
108
- template: install-dependencies.yml
11-
12-
- powershell: '& (./azure-pipelines/Get-nbgv.ps1) cloud'
13-
displayName: Set build number
14-
159
- template: dotnet.yml
1610

1711
- job: Linux
1812
pool:
1913
vmImage: Ubuntu 18.04
2014
steps:
21-
- checkout: self
22-
clean: true
2315
- template: install-dependencies.yml
2416
- template: dotnet.yml
2517

2618
- job: macOS
2719
pool:
2820
vmImage: macOS 10.13
2921
steps:
30-
- checkout: self
31-
clean: true
3222
- template: install-dependencies.yml
3323
- template: dotnet.yml
3424

@@ -41,8 +31,6 @@ jobs:
4131
vmImage: Ubuntu 18.04
4232
condition: succeededOrFailed()
4333
steps:
44-
- checkout: self
45-
clean: true
4634
- template: install-dependencies.yml
4735
parameters:
4836
initArgs: -NoRestore
@@ -53,8 +41,6 @@ jobs:
5341
pool:
5442
vmImage: Ubuntu 18.04
5543
steps:
56-
- checkout: self
57-
clean: true
5844
- template: install-dependencies.yml
5945
- task: DotNetCoreCLI@2
6046
displayName: dotnet test -f netcoreapp2.1

azure-pipelines/dotnet.yml

-16
Original file line numberDiff line numberDiff line change
@@ -29,29 +29,13 @@ steps:
2929
arguments: --no-build -c $(BuildConfiguration) -f netcoreapp2.1 --filter "TestCategory!=FailsInCloudTest" -v n /p:CollectCoverage=true
3030
testRunTitle: netcoreapp2.1-$(Agent.JobName)
3131

32-
- task: PowerShell@2
33-
inputs:
34-
filePath: azure-pipelines/variables/_pipelines.ps1
35-
failOnStderr: true
36-
displayName: Update pipeline variables based on build outputs
37-
condition: succeededOrFailed()
38-
3932
- task: PowerShell@2
4033
inputs:
4134
filePath: azure-pipelines/artifacts/_pipelines.ps1
4235
arguments: -ArtifactNameSuffix "-$(Agent.JobName)"
4336
displayName: Publish artifacts
4437
condition: succeededOrFailed()
4538

46-
- task: PublishSymbols@2
47-
inputs:
48-
SymbolsFolder: $(Build.ArtifactStagingDirectory)/symbols-Windows
49-
SearchPattern: '**/*.pdb'
50-
IndexSources: false
51-
SymbolServerType: TeamServices
52-
displayName: Publish symbols to symbol server
53-
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Agent.OS'], 'Windows_NT'))
54-
5539
- bash: bash <(curl -s https://codecov.io/bash)
5640
displayName: Publish code coverage results to codecov.io
5741
timeoutInMinutes: 3

azure-pipelines/install-dependencies.yml

-6
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,3 @@ steps:
77
.\init.ps1 -AccessToken '$(System.AccessToken)' ${{ parameters['initArgs'] }} -UpgradePrerequisites
88
dotnet --info
99
displayName: Install prerequisites
10-
11-
- task: PowerShell@2
12-
inputs:
13-
filePath: azure-pipelines/variables/_pipelines.ps1
14-
failOnStderr: true
15-
displayName: Set pipeline variables based on source

azure-pipelines/justnugetorg.nuget.config

-7
This file was deleted.

azure-pipelines/publish-codecoverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ steps:
1212
displayName: Download macOS code coverage results
1313
continueOnError: true
1414
- powershell: |
15-
dotnet tool install --tool-path obj dotnet-reportgenerator-globaltool --version 4.2.2 --configfile azure-pipelines/justnugetorg.nuget.config
15+
dotnet tool install --tool-path obj dotnet-reportgenerator-globaltool --version 4.2.2
1616
Copy-Item -Recurse $(Pipeline.Workspace)/coverageResults-Windows/obj/* $(System.DefaultWorkingDirectory)/obj
1717
Write-Host "Substituting {reporoot} with $(System.DefaultWorkingDirectory)"
1818
$reports = Get-ChildItem -Recurse "$(Pipeline.Workspace)/coverage.cobertura.xml"

azure-pipelines/variables/_all.ps1

-11
This file was deleted.

azure-pipelines/variables/_pipelines.ps1

-19
This file was deleted.

init.ps1

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Param (
3838
)
3939

4040
if (!$NoPrerequisites) {
41-
& "$PSScriptRoot\tools\Install-NuGetCredProvider.ps1" -AccessToken $AccessToken -Force:$UpgradePrerequisites
4241
& "$PSScriptRoot\tools\Install-DotNetSdk.ps1" -InstallLocality $InstallLocality
4342
}
4443

tools/Install-NuGetCredProvider.ps1

-66
This file was deleted.

0 commit comments

Comments
 (0)