Skip to content

Commit c6c0aec

Browse files
committed
Ensure JAVA 11 for Sonar
1 parent a509d47 commit c6c0aec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

appveyor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ nuget:
3636
before_build:
3737
- dotnet restore
3838
build_script:
39+
# Ensure Java 11, required by Sonar
40+
- set JAVA_HOME=C:\Program Files\Java\jdk11
41+
- set PATH=%JAVA_HOME%\bin;%PATH%
3942
# Begin SonarScanner
4043
- ps: 'if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { & dotnet sonarscanner begin /k:"Moq.ILogger" /o:adrianiftode-github /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$env:SONAR_TOKEN" /v:"$env:APPVEYOR_BUILD_NUMBER" /d:sonar.cs.opencover.reportsPaths="opencovercoverage.xml" /d:sonar.coverage.exclusions=test/**}'
4144
- dotnet build

0 commit comments

Comments
 (0)