Skip to content

Commit

Permalink
Use build/install-sdk.yml for all templates (#1228)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkerkhove authored Aug 19, 2020
1 parent 100e3ce commit 9767116
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
10 changes: 4 additions & 6 deletions build/azure-devops/templates/quality/run-code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ parameters:
type: string

steps:
- task: UseDotNet@2
displayName: 'Install .Net Core Sdk (${{ parameters.dotnetVersion }})'
inputs:
packageType: 'sdk'
version: '${{ parameters.dotnetVersion }}'
- template: ./../../build/install-sdk.yml
parameters:
dotnetVersion: '${{ parameters.dotnetVersion }}'
- task: DotNetCoreCLI@2
displayName: 'Restore NuGet Packages'
inputs:
Expand All @@ -18,4 +16,4 @@ steps:
inputs:
solutionOrProjectPath: 'src/Promitor.sln'
failBuildLevelSelector: 'Warning'
commandLineInterfacePath: '$(Build.SourcesDirectory)/Lib/Resharper'
commandLineInterfacePath: '$(Build.SourcesDirectory)/Lib/Resharper'
10 changes: 4 additions & 6 deletions build/azure-devops/templates/tests/run-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ parameters:
type: string

steps:
- task: UseDotNet@2
displayName: 'Install .Net Core Sdk (${{ parameters.dotnetVersion }})'
inputs:
packageType: 'sdk'
version: '${{ parameters.dotnetVersion }}'
- template: ./../../build/install-sdk.yml
parameters:
dotnetVersion: '${{ parameters.dotnetVersion }}'
- task: replacetokens@3
displayName: Replace Tokens in Integration Test Configuration (${{ parameters.agentName }} Agent)
inputs:
Expand All @@ -29,4 +27,4 @@ steps:
inputs:
command: test
projects: 'src/Promitor.Tests.Integration/Promitor.Tests.Integration.csproj'
arguments: '--configuration ${{ parameters.buildConfiguration }} --filter "Agent=${{ parameters.agentName}}"'
arguments: '--configuration ${{ parameters.buildConfiguration }} --filter "Agent=${{ parameters.agentName}}"'
10 changes: 4 additions & 6 deletions build/azure-devops/templates/tests/run-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ parameters:
type: string

steps:
- task: UseDotNet@2
displayName: 'Install .Net Core Sdk (${{ parameters.dotnetVersion }})'
inputs:
packageType: 'sdk'
version: '${{ parameters.dotnetVersion }}'
- template: ./../../build/install-sdk.yml
parameters:
dotnetVersion: '${{ parameters.dotnetVersion }}'
- task: DotNetCoreCLI@2
displayName: 'dotnet test'
inputs:
command: test
projects: 'src/Promitor.Tests.Unit/Promitor.Tests.Unit.csproj'
arguments: '--configuration ${{ parameters.buildConfiguration }}'
arguments: '--configuration ${{ parameters.buildConfiguration }}'

0 comments on commit 9767116

Please sign in to comment.