Revert "Merge branch 'feature/665-SonarCloud-integration' into feature/elsa-2.0"

This reverts commit 3dc1b79b3b, reversing
changes made to 1dbafd8ba2.

The previous merge of work on #665 broke the build so this commit
reverts it back out.
This commit is contained in:
Craig Fowler 2021-02-27 13:58:06 +00:00
parent 3dc1b79b3b
commit 8d4339f4b0
5 changed files with 2 additions and 47 deletions

View file

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<SonarQubeAnalysisProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.sonarsource.com/msbuild/integration/2015/1">
<Property Name="sonar.coverage.exclusions">
**/*Exception.cs,
src/samples/**/*
</Property>
</SonarQubeAnalysisProperties>

View file

@ -2,16 +2,6 @@ image: Previous Visual Studio 2019
environment:
nodejs_version: "11"
# AppVeyor installs Java on its build agents by default, but it
# picks an old version that's not compatible with SonarQube.
# This brings it up to date.
JAVA_HOME: "C:\\Program Files\\Java\\jdk13"
sonarcloud_org_name: elsa-workflows
sonarcloud_project_name: elsa-core
sonarcloud_api_key:
secure: qaE9kOVkGGFM7ZMf3YeliZxDU9udTCy6W5xXHJ9T+tXv5qXPMYlIdR7hyNgxW04A
sample_variable:
secure: MrPipn2VVHXu68PxZWztGA==
version: 2.0.0-preview6.{build}
@ -45,22 +35,6 @@ install:
cd ..\..\..\..\
dotnet tool install --global dotnet-sonarscanner
before_build:
- cmd: echo "The sample variable is %sample_variable%"
- cmd: >-
dotnet-sonarscanner begin
/k:%sonarcloud_project_name%
/v:AppVeyor_build_%version%
/o:%sonarcloud_org_name%
/s:%APPVEYOR_BUILD_FOLDER%\.SonarQube.Analysis.xml
/d:sonar.host.url="https://sonarcloud.io"
/d:sonar.login=%sonarcloud_api_key%
/d:sonar.cs.xunit.reportsPaths=%APPVEYOR_BUILD_FOLDER%\**\TestResults\TestResults.xml
/d:sonar.cs.opencover.reportsPaths=%APPVEYOR_BUILD_FOLDER%\**\TestResults\*\coverage.opencover.xml
/d:sonar.branch.name=%APPVEYOR_REPO_BRANCH%
build_script:
- ps: >-
cd .\src\dashboards\blazor\ElsaDashboard.Application
@ -69,21 +43,14 @@ build_script:
cd ..\..\..\..\
dotnet build
dotnet pack Elsa.sln --include-symbols /p:Version=$env:APPVEYOR_BUILD_VERSION
test_script:
- ps: dotnet test --collect:"XPlat Code Coverage" --logger:xunit -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover
after_test:
- cmd: dotnet-sonarscanner end /d:sonar.login=%sonarcloud_api_key%
before_package:
- ps: dotnet pack Elsa.sln --include-symbols /p:Version="$env:APPVEYOR_BUILD_VERSION"
- ps: dotnet test
artifacts:
- path: '**/*.nupkg'
name: Packages
- path: '**/TestResults/TestResults.xml'
deploy:
# Deploy to MyGet on every build (in the appropriate branch)

View file

@ -11,7 +11,6 @@
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="5.0.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="XunitXml.TestLogger" Version="3.0.62" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>

View file

@ -14,7 +14,6 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="NodaTime.Testing" Version="3.0.3" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="XunitXml.TestLogger" Version="3.0.62" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>

View file

@ -13,7 +13,6 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
<PackageReference Include="Moq" Version="4.16.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="XunitXml.TestLogger" Version="3.0.62" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>