version: '{build}'
image: Visual Studio 2019
init:
- git config --global core.autocrlf true
configuration:
- Debug
- Release
before_build:
- nuget restore
skip_tags: true
build:
  project: StyleCopAnalyzers.sln
  verbosity: minimal
test_script:
- cd build
- ps: |
    if ($env:Configuration -eq 'Debug') {
      .\opencover-report.ps1 -Debug -NoBuild -NoReport -AppVeyor
      if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
      $packageConfig = [xml](Get-Content ..\.nuget\packages.config)
      $codecov_version = $packageConfig.SelectSingleNode('/packages/package[@id="Codecov"]').version
      $codecov = "..\packages\Codecov.$codecov_version\tools\codecov.exe"
      &$codecov -f '..\build\OpenCover.Reports\OpenCover.StyleCopAnalyzers.xml'
    } else {
      .\opencover-report.ps1 -NoBuild -NoReport -AppVeyor
      if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
    }
- cd ..
- .\StyleCop.Analyzers\StyleCop.Analyzers.Status.Generator\bin\%Configuration%\net46\StyleCop.Analyzers.Status.Generator.exe .\StyleCopAnalyzers.sln > StyleCop.Analyzers.Status.json
cache:
  - packages -> **\packages.config
  - C:\Users\appveyor\.nuget\packages -> appveyor.yml

# 'Release' is hard-coded to ensure VSIX and NuGet artifacts are only published for release configuration builds
artifacts:
- path: 'StyleCop.Analyzers\StyleCop.Analyzers.Vsix\bin\Release\net452\*.vsix'
- path: 'StyleCop.Analyzers\StyleCop.Analyzers.CodeFixes\bin\Release\*.nupkg'
- path: 'StyleCop.Analyzers.Status.json'

version: '{build}'
image: Visual Studio 2019
init:
- git config --global core.autocrlf true
configuration:
- Debug
- Release
before_build:
- nuget restore
skip_tags: true
build:
  project: StyleCopAnalyzers.sln
  verbosity: minimal
test_script:
- .\StyleCop.Analyzers\StyleCop.Analyzers.Status.Generator\bin\%Configuration%\net46\StyleCop.Analyzers.Status.Generator.exe .\StyleCopAnalyzers.sln > StyleCop.Analyzers.Status.json
cache:
  - packages -> **\packages.config
  - C:\Users\appveyor\.nuget\packages -> appveyor.yml

# 'Release' is hard-coded to ensure VSIX and NuGet artifacts are only published for release configuration builds
artifacts:
- path: 'StyleCop.Analyzers\StyleCop.Analyzers.Vsix\bin\Release\net452\*.vsix'
- path: 'StyleCop.Analyzers\StyleCop.Analyzers.CodeFixes\bin\Release\*.nupkg'
- path: 'StyleCop.Analyzers.Status.json'

Remove testing from AppVeyor builds
Remove testing from AppVeyor builds
