Browse Source

#2128: Add dotnet-format --check to build pipeline

pull/2134/head
Siegfried Pammer 6 years ago
parent
commit
734d798365
  1. 2
      appveyor.yml
  2. 14
      azure-pipelines.yml

2
appveyor.yml

@ -9,6 +9,7 @@ image: Visual Studio 2019 @@ -9,6 +9,7 @@ image: Visual Studio 2019
install:
- git submodule update --init --recursive
- pwsh .\BuildTools\appveyor-install.ps1
- dotnet tool install dotnet-format --tool-path tools
nuget:
account_feed: false
@ -29,6 +30,7 @@ test_script: @@ -29,6 +30,7 @@ test_script:
after_test:
- python BuildTools\tidy.py
- dotnet-format --check --verbosity diagnostic ILSpy.sln
for:
- branches:

14
azure-pipelines.yml

@ -45,6 +45,13 @@ jobs: @@ -45,6 +45,13 @@ jobs:
version: '3.1.100'
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: DotNetCoreCLI@2
displayName: 'Install dotnet format'
inputs:
command: 'custom'
custom: 'tool'
arguments: 'install dotnet-format --tool-path tools'
- script: pwsh .\BuildTools\pipelines-install.ps1
displayName: Install
@ -85,6 +92,13 @@ jobs: @@ -85,6 +92,13 @@ jobs:
- script: python BuildTools\tidy.py
displayName: Tab check
- task: DotNetCoreCLI@2
displayName: dotnet-format check
inputs:
command: 'custom'
custom: 'format'
arguments: '--check --verbosity diagnostic ILSpy.sln'
- task: CopyFiles@2
displayName: Move VSIX to publish directory
inputs:

Loading…
Cancel
Save