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
install: install:
- git submodule update --init --recursive - git submodule update --init --recursive
- pwsh .\BuildTools\appveyor-install.ps1 - pwsh .\BuildTools\appveyor-install.ps1
- dotnet tool install dotnet-format --tool-path tools
nuget: nuget:
account_feed: false account_feed: false
@ -29,6 +30,7 @@ test_script:
after_test: after_test:
- python BuildTools\tidy.py - python BuildTools\tidy.py
- dotnet-format --check --verbosity diagnostic ILSpy.sln
for: for:
- branches: - branches:

14
azure-pipelines.yml

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

Loading…
Cancel
Save