@@ -17,11 +17,10 @@ install:
1717- ps : $env:DOTNET_SKIP_FIRST_TIME_EXPERIENCE = "true"
1818- dotnet tool install --global dotnet-sonarscanner
1919
20- environment :
21- PATH : $(PATH);$(PROGRAMFILES)\dotnet\
22-
2320 # https://www.appveyor.com/docs/build-configuration/#secure-variables
2421 # However, secure variables are not decoded during Pull Request builds which prevents someone from submitting PR with malicious build script displaying those variables. In more controlled environment through with a trusted team and private GitHub repositories there is an option on General tab of project settings to allow secure variables for PRs.
22+ environment :
23+ PATH : $(PATH);$(PROGRAMFILES)\dotnet\
2524 COVERALLS_REPO_TOKEN :
2625 secure : tsTABRbCmdWFLT194XNIrpurerOfjN6cEoxt2RaSUfLmUIgra/+CwuqVkv0sPRop
2726 SONAR_TOKEN :
@@ -43,7 +42,7 @@ before_build:
4342
4443build_script :
4544# Begin SonarScanner
46- - ps : ' if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { dotnet sonarscanner begin /k:"system.linq.dynamic.core" /d:sonar.organization="stefh-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="% SONAR_TOKEN% " /v:"% APPVEYOR_BUILD_NUMBER% " /d:sonar.cs.opencover.reportsPaths="%CD% \coverage.xml" }'
45+ - ps : ' if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { & dotnet sonarscanner begin /k:"system.linq.dynamic.core" /d:sonar.organization="stefh-github" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="$env: SONAR_TOKEN" /v:"$env: APPVEYOR_BUILD_NUMBER" /d:sonar.cs.opencover.reportsPaths="$env:CD \coverage.xml" }'
4746
4847# Build Code
4948- dotnet build src\EntityFramework.DynamicLinq\EntityFramework.DynamicLinq.csproj -c %CONFIGURATION%
@@ -63,7 +62,7 @@ test_script:
6362- cmd : ' "OpenCover\tools\OpenCover.Console.exe" -target:dotnet.exe -targetargs:"test test\System.Linq.Dynamic.Core.Tests\System.Linq.Dynamic.Core.Tests.csproj --configuration %CONFIGURATION% --framework netcoreapp1.1 --no-build" -output:coverage.xml -register:user -filter:"+[Microsoft.EntityFrameworkCore.DynamicLinq]* +[System.Linq.Dynamic.Core]* -[*Tests*]*" -nodefaultfilters -returntargetcode -oldstyle'
6463- codecov -f "coverage.xml"
6564- coveralls.net\tools\csmacnz.Coveralls.exe --opencover -i .\coverage.xml
66- - ps : ' if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { dotnet sonarscanner end /d:sonar.login="% SONAR_TOKEN% " }'
65+ - ps : ' if (-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) { & dotnet sonarscanner end /d:sonar.login="$env: SONAR_TOKEN" }'
6766
6867# Run tests for EntityFramework.DynamicLinq
6968- dotnet test -c %CONFIGURATION% --no-build test\EntityFramework.DynamicLinq.Tests\EntityFramework.DynamicLinq.Tests.csproj
0 commit comments