Cake.Codecov
0.7.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Cake.Codecov --version 0.7.0
NuGet\Install-Package Cake.Codecov -Version 0.7.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Cake.Codecov" Version="0.7.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cake.Codecov --version 0.7.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cake.Codecov, 0.7.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Cake.Codecov as a Cake Addin
#addin nuget:?package=Cake.Codecov&version=0.7.0
// Install Cake.Codecov as a Cake Tool
#tool nuget:?package=Cake.Codecov&version=0.7.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Usage
In order to use this addin, add to your Cake script
#tool nuget:?package=Codecov
#addin nuget:?package=Cake.Codecov
Then use one of the following snippets to upload your coverage report to Codecov
Task("Upload-Coverage")
.Does(() =>
{
// Upload a coverage report.
Codecov("coverage.xml");
});
Task("Upload-Coverage")
.Does(() =>
{
// Upload coverage reports.
Codecov(new[] { "coverage1.xml", "coverage2.xml" });
});
Task("Upload-Coverage")
.Does(() =>
{
// Upload a coverage report by providing the Codecov upload token.
Codecov("coverage.xml", "00000000-0000-0000-0000-000000000000");
});
Task("Upload-Coverage")
.Does(() =>
{
// Upload coverage reports by providing the Codecov upload token.
Codecov(new[] { "coverage1.xml", "coverage2.xml" }, "00000000-0000-0000-0000-000000000000");
});
Task("Upload-Coverage")
.Does(() =>
{
// Upload a coverage report using the CodecovSettings.
Codecov(new CodecovSettings {
Files = new[] { "coverage.xml" },
Token = "00000000-0000-0000-0000-000000000000",
Flags = "ut"
});
});
Documentation
Documentation for the addin can be found on the Cake Website.
Codecov Tips
- The codecov-exe uploader defined in
#tool nuget:?package=Codecov
currently supports Windows, Linux and OSX. (*Note: There is also the Codecov.Tool utility if you prefer using .NET Core tools. - Many CI services (like AppVeyor) do not require you to provide a Codecov upload token. However, TeamCity is a rare exception.
- Using Codecov with TeamCity MAY require configuration. Please refer to the codecov-exe documentation.
Questions
Feel free to open an issue or ask a question in Gitter by tagging us: @larzw and/or @AdmiringWorm.
Known Issues
- Coverage report upload fails when using gitversion (or other tools that change the appveyor build version)
Workaround: Add the following in your Upload Coverage task
Task("Upload-Coverage") .Does(() => { // The logic may differ from what you actually need. // This way is for the use with GitVersion. // Basically, the buildVersion format needs to be exactly the // same as the build version shown on appveyor when the build is done. var buildVersion = string.Format("{0}.build.{1}", variableThatStores_GitVersion_FullSemVer, BuildSystem.AppVeyor.Environment.Build.Number ); var settings = new CodecovSettings { Files = new[] { "coverage.xml" }, EnvironmentVariables = new Dictionary<string,string> { { "APPVEYOR_BUILD_VERSION", buildVersion } } }; Codecov(settings); });
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net46 is compatible. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Cake.Codecov:
Repository | Stars |
---|---|
GitTools/GitVersion
From git log to SemVer in no time
|
Version | Downloads | Last updated |
---|---|---|
1.1.0 | 81 | 5/4/2024 |
1.0.1 | 125,881 | 3/26/2021 |
1.0.0 | 4,469 | 2/13/2021 |
0.9.1 | 40,170 | 7/11/2020 |
0.9.0 | 1,278 | 7/8/2020 |
0.8.0 | 64,457 | 1/9/2020 |
0.7.0 | 14,482 | 8/3/2019 |
0.6.0 | 112,945 | 4/26/2019 |
0.5.0 | 44,130 | 12/13/2018 |
0.4.0 | 14,891 | 3/23/2018 |
0.3.0 | 7,362 | 10/23/2017 |
0.2.1 | 4,333 | 6/30/2017 |
0.2.0 | 4,888 | 5/26/2017 |
0.1.0 | 1,106 | 5/26/2017 |
All release notes for Cake.Codecov can be found on the GitHub site - https://github.com/cake-contrib/Cake.Codecov/releases/tag/.