Skip to content

Commit

Permalink
.NET 5 Release (#34)
Browse files Browse the repository at this point in the history
* Bump version to v.1.0.0.
* .NET 5 Release
* Update .NET versions in the readme files.
  • Loading branch information
aueda authored Nov 11, 2020
1 parent db889b7 commit 8d0cd58
Showing 6 changed files with 19 additions and 20 deletions.
17 changes: 8 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
dist: xenial
sudo: required
os: linux
env:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true DOTNET_CLI_TELEMETRY_OPTOUT=1
install:
- sudo wget -q https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
- sudo dpkg -i packages-microsoft-prod.deb
@@ -9,8 +11,8 @@ install:
- sudo apt-get install dotnet-sdk-3.1
- sudo apt-get install dotnet-sdk-2.2

- sudo wget -q https://download.visualstudio.microsoft.com/download/pr/69cb8922-7bb0-4d3a-aa92-8cb885fdd0a6/2fd4da9e026f661caf8db9c1602e7b2f/dotnet-sdk-5.0.100-rc.2.20479.15-linux-x64.tar.gz
- sudo tar zxf dotnet-sdk-5.0.100-rc.2.20479.15-linux-x64.tar.gz -C /usr/share/dotnet
- sudo wget -q https://download.visualstudio.microsoft.com/download/pr/820db713-c9a5-466e-b72a-16f2f5ed00e2/628aa2a75f6aa270e77f4a83b3742fb8/dotnet-sdk-5.0.100-linux-x64.tar.gz
- sudo tar zxf dotnet-sdk-5.0.100-linux-x64.tar.gz -C /usr/share/dotnet

- dotnet tool install --global coveralls.net --version 1.0.0
- export PATH="$PATH:/home/travis/.dotnet/tools"
@@ -23,10 +25,7 @@ script:
- dotnet test --framework netcoreapp2.1 --configuration Release
- dotnet test --framework netcoreapp2.2 --configuration Release
- dotnet test --framework netcoreapp3.0 --configuration Release
- dotnet test --framework netcoreapp5.0 --configuration Release
- dotnet test --framework netcoreapp3.1 --configuration Release /p:CollectCoverage=true /p:CopyLocalLockFileAssemblies=true /p:UseSourceLink=true /p:CoverletOutput=../TestResult/ /p:CoverletOutputFormat=opencover
- dotnet test --framework net5.0 --configuration Release
- dotnet test --framework netcoreapp3.1 --configuration Release /p:CollectCoverage=true /p:CopyLocalLockFileAssemblies=true /p:UseSourceLink=true /p:CoverletOutput=../TestResult/ /p:CoverletOutputFormat=opencover /p:ExcludeByAttribute=CompilerGeneratedAttribute

- csmacnz.Coveralls --opencover -i ./TestResult/coverage.netcoreapp3.1.opencover.xml --useRelativePaths --commitId $TRAVIS_COMMIT --commitBranch $TRAVIS_BRANCH --commitAuthor "$REPO_COMMIT_AUTHOR" --commitEmail "$REPO_COMMIT_AUTHOR_EMAIL" --commitMessage "$REPO_COMMIT_MESSAGE" --jobId $TRAVIS_JOB_ID --serviceName travis-ci
global:
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
- DOTNET_CLI_TELEMETRY_OPTOUT=1
- csmacnz.Coveralls --opencover -i ./TestResult/coverage.netcoreapp3.1.opencover.xml --useRelativePaths --commitId $TRAVIS_COMMIT --commitBranch $TRAVIS_BRANCH --commitAuthor "$REPO_COMMIT_AUTHOR" --commitEmail "$REPO_COMMIT_AUTHOR_EMAIL" --commitMessage "$REPO_COMMIT_MESSAGE" --jobId $TRAVIS_JOB_ID --serviceName travis-ci
3 changes: 2 additions & 1 deletion LEIAME.md
Original file line number Diff line number Diff line change
@@ -10,7 +10,8 @@

Versão em inglês: [README.md](https://github.com/aueda/maoli/)

Maoli é uma biblioteca de regras de negócio brasileiras comuns, compatível com .NET Framework 4.0 e superior.
Maoli é uma biblioteca de regras de negócio brasileiras comuns,
compatível com .NET Framework 4.0+, .NET Core 1.0+ e .NET 5.

Atualmente implementa:

3 changes: 1 addition & 2 deletions Maoli.Tests/Maoli.Tests.csproj
Original file line number Diff line number Diff line change
@@ -6,8 +6,7 @@
</PropertyGroup>

<ItemGroup>
<!--<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />-->
<DotNetCliToolReference Include="dotnet-reportgenerator-cli" Version="4.5.2" />
<DotNetCliToolReference Include="dotnet-reportgenerator-cli" Version="4.6.7" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)'!='net40' And '$(TargetFramework)'!='net45'">
4 changes: 2 additions & 2 deletions Maoli/Maoli.csproj
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
<Company />
<Copyright>Copyright © 2020 Adriano Ueda</Copyright>
<Description>Maoli is a C# helper library for common Brazilian business rules (CPF, CNPJ and CEP). For documentation visit https://github.com/aueda/maoli</Description>
<Version>0.5.0-rc2</Version>
<Version>1.0.0</Version>
<PackageProjectUrl>https://github.com/aueda/maoli</PackageProjectUrl>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
@@ -35,7 +35,7 @@
<AdditionalFiles Include="stylecop.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.0">
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
Versão em português: [LEIAME.md](https://github.com/aueda/maoli/blob/master/LEIAME.md)

Maoli is a C# helper library for common Brazilian business rules (CEP, CPF and CNPJ),
compatible with .NET Framework 4.0 and above.
compatible with .NET Framework 4.0+, .NET Core 1.0+, and .NET 5.

Currently implements:

10 changes: 5 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ steps:
inputs:
packageType: 'sdk'
version: '5.x'
includePreviewVersions: true
includePreviewVersions: false

- task: UseDotNet@2
displayName: 'Use .NET Core 3.1.x'
@@ -70,14 +70,14 @@ steps:
displayName: 'dotnet test (coverage)'
inputs:
command: test
arguments: '--framework netcoreapp3.1 --configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=$(Build.SourcesDirectory)\TestResult\Coverage\'
arguments: '--framework net5.0 --configuration $(BuildConfiguration) /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput=$(Build.SourcesDirectory)\TestResult\Coverage\'

- task: DotNetCoreCLI@2
displayName: 'dotnet reportgenerator'
inputs:
command: custom
custom: reportgenerator
arguments: '"-reports:$(Build.SourcesDirectory)\TestResult\Coverage\coverage.netcoreapp3.1.cobertura.xml" "-targetdir:$(Build.SourcesDirectory)\TestResult\Coverage\Reports" -tag:$(Build.BuildNumber) -reportTypes:HtmlInline_AzurePipelines;htmlInline'
arguments: '"-reports:$(Build.SourcesDirectory)\TestResult\Coverage\coverage.net5.0.cobertura.xml" "-targetdir:$(Build.SourcesDirectory)\TestResult\Coverage\Reports" -tag:$(Build.BuildNumber) -reportTypes:HtmlInline_AzurePipelines;htmlInline'
workingDirectory: Maoli.Tests

- task: CopyFiles@2
@@ -100,8 +100,8 @@ steps:
publishLocation: 'Container'

- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage from $(Build.SourcesDirectory)\TestResult\Coverage\**\coverage.netcoreapp3.1.cobertura.xml'
displayName: 'Publish code coverage from $(Build.SourcesDirectory)\TestResult\Coverage\**\coverage.net5.0.cobertura.xml'
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(Build.SourcesDirectory)\TestResult\Coverage\**\coverage.netcoreapp3.1.cobertura.xml'
summaryFileLocation: '$(Build.SourcesDirectory)\TestResult\Coverage\**\coverage.net5.0.cobertura.xml'
reportDirectory: '$(Build.SourcesDirectory)\TestResult\Coverage\Reports'

0 comments on commit 8d0cd58

Please sign in to comment.