Update appveyor.yml

This commit is contained in:
Jens Willmer 2021-04-01 11:05:58 +02:00 committed by GitHub
parent 5f902a4c13
commit 20bbcd4b5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,6 +56,33 @@ install:
dotnet tool install --global dotnet-sonarscanner
before_build:
- ps: >-
if(-Not $env:APPVEYOR_PULL_REQUEST_NUMBER) {
& dotnet-sonarscanner begin
/k:$env:sonarcloud_project_name
/v:AppVeyor_build_$env:APPVEYOR_BUILD_VERSION
/o:$env:sonarcloud_org_name
/s:$env:APPVEYOR_BUILD_FOLDER\.SonarQube.Analysis.xml
/d:sonar.host.url="https://sonarcloud.io"
/d:sonar.login=$env:sonarcloud_api_key
/d:sonar.cs.xunit.reportsPaths=$env:APPVEYOR_BUILD_FOLDER\**\TestResults\TestResults.xml
/d:sonar.cs.opencover.reportsPaths=$env:APPVEYOR_BUILD_FOLDER\**\TestResults\*\coverage.opencover.xml
/d:sonar.branch.name=$env:APPVEYOR_REPO_BRANCH
}
build_script:
- ps: >-
cd .\src\dashboards\blazor\ElsaDashboard.Application
npm run build:css
cd ..\..\..\designer\bindings\blazor\Elsa.Designer.Bindings.Blazor
npm run build
cd ..\..\..\..\..\
dotnet build
test_script:
- ps: dotnet test --collect:"XPlat Code Coverage" --logger:xunit -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover