Skip to content

Commit

Permalink
Hopefully properly set up code coverage reporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
zedseven committed Feb 6, 2021
1 parent c99fd42 commit d7f4144
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ $tf/
*.gpState

# JetBrains IDEs make a folder for storage of configuration etc
.idea/
.idea/

# ReSharper is a .NET coding add-in
_ReSharper*/
Expand All @@ -143,6 +143,8 @@ _TeamCity*
# Visual Studio code coverage results
*.coverage
*.coveragexml
coverage.json
coverage.*.xml

# NCrunch
_NCrunch_*
Expand Down
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ before_script:

script:
- dotnet build RomanizationNet.sln --configuration Release --no-restore
- dotnet test RomanizationTests/RomanizationTests.csproj
- dotnet test //p:CollectCoverage=true //p:CoverletOutputFormat=cobertura RomanizationTests/RomanizationTests.csproj

after_script: ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
after_script: ./cc-test-reporter after-build --input RomanizationTests\coverage.cobertura.xml --coverage-input-type cobertura --exit-code $TRAVIS_TEST_RESULT

before_deploy: echo "Installing docfx..." && wget -q "https://github.com/dotnet/docfx/releases/download/v2.56.4/docfx.zip" && unzip -q -o -d ./docfx docfx.zip
before_deploy: echo "Installing docfx..." && wget -q "https://github.com/dotnet/docfx/releases/download/v2.56.6/docfx.zip" && unzip -q -o -d ./docfx docfx.zip

deploy:
provider: script
Expand Down
1 change: 1 addition & 0 deletions RomanizationTests/RomanizationTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.msbuild" Version="3.0.2" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit d7f4144

Please sign in to comment.