Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,10 @@ nCrunchTemp*
*.playlist

#vs code config
.vscode
.vscode

#coverlet coverage files
coverage.xml

#sonar qube auto generated files
.sonarqube
22 changes: 16 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,20 @@ solution: Seed.sln
os: linux
dotnet: "2.0.0"
mono: none
install: dotnet restore
before_install:
- sudo apt-get install unzip
- mkdir ~/tools/
- sudo wget -P ~/tools/ "https://github.com/SonarSource/sonar-scanner-msbuild/releases/download/4.2.0.1214/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip"
- mkdir ~/tools/sonarscanner
- sudo unzip ~/tools/sonar-scanner-msbuild-4.2.0.1214-netcoreapp2.0.zip -d ~/tools/sonarscanner
- sudo chmod 777 ~/tools/sonarscanner -R
install:
- dotnet restore
script:
- dotnet build --configuration release
- dotnet test Seed.Domain.Tests/Seed.Domain.Tests.csproj --configuration release
- dotnet test Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj --configuration release
- dotnet test Seed.Api.Tests/Seed.Api.Tests.csproj --configuration release
- dotnet test Seed.Data.Tests/Seed.Data.Tests.csproj --configuration release
- sudo dotnet ~/tools/sonarscanner/SonarScanner.MSBuild.dll begin /key:makingsensenetcoreseed /d:sonar.host.url="https://sonarcloud.io" /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170" /d:sonar.organization=making-sense /d:sonar.verbose=true /d:sonar.cs.opencover.reportsPaths="$(pwd)/Seed.*.Tests/coverage.xml"
- sudo dotnet build --configuration release
- sudo dotnet test Seed.Domain.Tests/Seed.Domain.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release
- sudo dotnet test Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release
- sudo dotnet test Seed.Api.Tests/Seed.Api.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release
- sudo dotnet test Seed.Data.Tests/Seed.Data.Tests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover --configuration release
- sudo dotnet ~/tools/sonarscanner/SonarScanner.MSBuild.dll end /d:sonar.login="05f3cb7e227cb06a2c544264aed57186621df170"
6 changes: 4 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# WebapiCore-seed [![Build Status](https://travis-ci.org/MakingSense/WebApiCore-Seed.svg?branch=master)](https://travis-ci.org/MakingSense/WebApiCore-Seed)

# WebapiCore-seed
[![Build Status](https://travis-ci.org/MakingSense/WebApiCore-Seed.svg?branch=master)](https://travis-ci.org/MakingSense/WebApiCore-Seed)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?project=makingsensenetcoreseed&metric=alert_status)](https://sonarcloud.io/dashboard?id=makingsensenetcoreseed)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=makingsensenetcoreseed&metric=coverage)](https://sonarcloud.io/component_measures?id=makingsensenetcoreseed&metric=coverage)
## Prerequisites

.NET Core SDK
Expand Down
8 changes: 7 additions & 1 deletion Seed.Api.Tests/Seed.Api.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@

<IsPackable>false</IsPackable>
</PropertyGroup>


<PropertyGroup>
<!-- Exclude the project from analysis -->
<SonarQubeExclude>true</SonarQubeExclude>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="1.2.0" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
<PackageReference Include="xunit" Version="2.3.1" />
Expand Down
8 changes: 7 additions & 1 deletion Seed.Data.Tests/Seed.Data.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@

<IsPackable>false</IsPackable>
</PropertyGroup>


<PropertyGroup>
<!-- Exclude the project from analysis -->
<SonarQubeExclude>true</SonarQubeExclude>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="1.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
Expand Down
2 changes: 1 addition & 1 deletion Seed.Data/Seed.Data.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
Expand Down
6 changes: 6 additions & 0 deletions Seed.Domain.Tests/Seed.Domain.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@

<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup>
<!-- Exclude the project from analysis -->
<SonarQubeExclude>true</SonarQubeExclude>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="1.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
<PackageReference Include="xunit" Version="2.3.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
Expand Down
2 changes: 1 addition & 1 deletion Seed.Domain/Seed.Domain.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
Expand Down
6 changes: 6 additions & 0 deletions Seed.Infrastructure.Tests/Seed.Infrastructure.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@

<IsPackable>false</IsPackable>
</PropertyGroup>

<PropertyGroup>
<!-- Exclude the project from analysis -->
<SonarQubeExclude>true</SonarQubeExclude>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="1.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.7.0" />
<PackageReference Include="Moq" Version="4.8.2" />
<PackageReference Include="xunit" Version="2.3.1" />
Expand Down
2 changes: 1 addition & 1 deletion Seed.Infrastructure/Seed.Infrastructure.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
Expand Down