image: Visual Studio 2019
version: '{branch}-{build}'

# This version of Java is required for SonarScanner
# the default version installed by AppVeyor is too old
environment:
    JAVA_HOME: "C:\\Program Files\\Java\\jdk13"

init:
    - cmd: git config --global core.autocrlf true
    
# https://github.com/SonarSource/sonar-scanner-msbuild/issues/915 means that SonarScanner v5.0.0 breaks the build.
# Forcing it to use previous version 4.10.0 works around it.
install:
    - cmd: git submodule update --init --recursive
    - cmd: dotnet tool install --global dotnet-sonarscanner --version 4.10.0
    
build_script: powershell.exe -file Tools\appveyor-build.ps1

image: Visual Studio 2019
version: '{branch}-{build}'

environment:
    JAVA_HOME: "C:\\Program Files\\Java\\jdk13"

init:
    - cmd: git config --global core.autocrlf true
    
# https://github.com/SonarSource/sonar-scanner-msbuild/issues/915 means that SonarScanner v5.0.0 breaks the build.
# Forcing it to use previous version 4.10.0 works around it.
install:
    - cmd: git submodule update --init --recursive
    - cmd: dotnet tool install --global dotnet-sonarscanner --version 4.10.0
    
build_script: Tools\appveyor-build.ps1

Revert "Another attempt to get the YML right for the build improvements"
Revert "Another attempt to get the YML right for the build improvements"

This reverts commit c05966ba8683a831b9aab061042b25b51c7d4df8.
