Skip to content

Commit

Permalink
Trim down scripts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AArnott committed Feb 8, 2020
1 parent ddd4998 commit ae05395
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 246 deletions.
11 changes: 2 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
trigger:
branches:
include:
- master
- 'maint.*'
paths:
exclude:
- doc/
- '*.md'
- .vscode/
- master
- maint/*

variables:
TreatWarningsAsErrors: true
Expand Down
37 changes: 0 additions & 37 deletions azure-pipelines/Convert-PDB.ps1

This file was deleted.

22 changes: 0 additions & 22 deletions azure-pipelines/Get-NuGetTool.ps1

This file was deleted.

13 changes: 0 additions & 13 deletions azure-pipelines/Get-TempToolsPath.ps1

This file was deleted.

24 changes: 0 additions & 24 deletions azure-pipelines/Get-nbgv.ps1

This file was deleted.

14 changes: 0 additions & 14 deletions azure-pipelines/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,20 @@ jobs:
- job: Windows
pool: ${{ parameters.windowsPool }}
steps:
- checkout: self
clean: true
- template: install-dependencies.yml

- powershell: '& (./azure-pipelines/Get-nbgv.ps1) cloud'
displayName: Set build number

- template: dotnet.yml

- job: Linux
pool:
vmImage: Ubuntu 18.04
steps:
- checkout: self
clean: true
- template: install-dependencies.yml
- template: dotnet.yml

- job: macOS
pool:
vmImage: macOS 10.13
steps:
- checkout: self
clean: true
- template: install-dependencies.yml
- template: dotnet.yml

Expand All @@ -41,8 +31,6 @@ jobs:
vmImage: Ubuntu 18.04
condition: succeededOrFailed()
steps:
- checkout: self
clean: true
- template: install-dependencies.yml
parameters:
initArgs: -NoRestore
Expand All @@ -53,8 +41,6 @@ jobs:
pool:
vmImage: Ubuntu 18.04
steps:
- checkout: self
clean: true
- template: install-dependencies.yml
- task: DotNetCoreCLI@2
displayName: dotnet test -f netcoreapp2.1
Expand Down
16 changes: 0 additions & 16 deletions azure-pipelines/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,29 +29,13 @@ steps:
arguments: --no-build -c $(BuildConfiguration) -f netcoreapp2.1 --filter "TestCategory!=FailsInCloudTest" -v n /p:CollectCoverage=true
testRunTitle: netcoreapp2.1-$(Agent.JobName)

- task: PowerShell@2
inputs:
filePath: azure-pipelines/variables/_pipelines.ps1
failOnStderr: true
displayName: Update pipeline variables based on build outputs
condition: succeededOrFailed()

- task: PowerShell@2
inputs:
filePath: azure-pipelines/artifacts/_pipelines.ps1
arguments: -ArtifactNameSuffix "-$(Agent.JobName)"
displayName: Publish artifacts
condition: succeededOrFailed()

- task: PublishSymbols@2
inputs:
SymbolsFolder: $(Build.ArtifactStagingDirectory)/symbols-Windows
SearchPattern: '**/*.pdb'
IndexSources: false
SymbolServerType: TeamServices
displayName: Publish symbols to symbol server
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'), eq(variables['Agent.OS'], 'Windows_NT'))

- bash: bash <(curl -s https://codecov.io/bash)
displayName: Publish code coverage results to codecov.io
timeoutInMinutes: 3
Expand Down
6 changes: 0 additions & 6 deletions azure-pipelines/install-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,3 @@ steps:
.\init.ps1 -AccessToken '$(System.AccessToken)' ${{ parameters['initArgs'] }} -UpgradePrerequisites
dotnet --info
displayName: Install prerequisites

- task: PowerShell@2
inputs:
filePath: azure-pipelines/variables/_pipelines.ps1
failOnStderr: true
displayName: Set pipeline variables based on source
7 changes: 0 additions & 7 deletions azure-pipelines/justnugetorg.nuget.config

This file was deleted.

2 changes: 1 addition & 1 deletion azure-pipelines/publish-codecoverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ steps:
displayName: Download macOS code coverage results
continueOnError: true
- powershell: |
dotnet tool install --tool-path obj dotnet-reportgenerator-globaltool --version 4.2.2 --configfile azure-pipelines/justnugetorg.nuget.config
dotnet tool install --tool-path obj dotnet-reportgenerator-globaltool --version 4.2.2
Copy-Item -Recurse $(Pipeline.Workspace)/coverageResults-Windows/obj/* $(System.DefaultWorkingDirectory)/obj
Write-Host "Substituting {reporoot} with $(System.DefaultWorkingDirectory)"
$reports = Get-ChildItem -Recurse "$(Pipeline.Workspace)/coverage.cobertura.xml"
Expand Down
11 changes: 0 additions & 11 deletions azure-pipelines/variables/_all.ps1

This file was deleted.

19 changes: 0 additions & 19 deletions azure-pipelines/variables/_pipelines.ps1

This file was deleted.

1 change: 0 additions & 1 deletion init.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Param (
)

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

Expand Down
66 changes: 0 additions & 66 deletions tools/Install-NuGetCredProvider.ps1

This file was deleted.

0 comments on commit ae05395

Please sign in to comment.