Update appveyor.yml
This commit is contained in:
parent
5f902a4c13
commit
20bbcd4b5a
27
appveyor.yml
27
appveyor.yml
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue