Codecov.Tool 1.6.1

Codecov global executable uploader.

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Codecov.Tool --version 1.6.1
This package contains a .NET Core Global Tool you can call from the shell/command line.

Codecov global executable uploader for .NET Framework/Core based builds.

| https://codecov.io/ | @codecov | hello@codecov.io |
| ------------------------ | ------------- | --------------------- |

Introduction

Build status
NuGet
Chocolatey
Gitter
codecov

  1. This uploader supports Windows 7 (x64) and above, Linux (x64), and OS X (x64).

  2. The following Services are supported: AppVeyor, Azure Pipelines, TeamCity (see section on TeamCity), and Git.

  3. Many Codecov CLI options are supported. Run .\codecov.exe --help or see CommandLineOptions.cs for more details.

  4. On windows you can download the exe from NuGet or Chocolatey. There is also the .Net tool called Codecov.Tool which supports all platforms. As an alternative to NuGet or Chocolatey you can download the exe as the asset Codecov-{os}.zip under the release. The following PowerShell (version 5) commands might be helpful.

(New-Object System.Net.WebClient).DownloadFile("<url>", (Join-Path $pwd "Codecov.zip")) # Download Codecov.zip from github release.
Expand-Archive .\Codecov.zip -DestinationPath . # UnZip the file.
.\Codecov\codecov.exe # Run codecov.exe with whatever commands you need.

Quick Start

For a basic use case, in PowerShell run the following commands,

>  choco install codecov
>  .\codecov.exe -f <path to coverage report> -t <Codecov upload token>

For an AppVeyor build, the appveyor.yml file would look something like

before_build:
- choco install codecov
test_script:
# Note that, a Codecov upload token is not required.
- codecov -f <path to coverage report>

Cake Addin

If you use Cake (C# Make) for your builds, you may be intrested in the Cake.Codecov addin.

TeamCity

TeamCity does not automatically make build parameters available as environment variables. You will need to add the following environment parameters to the build configuration. To do this make sure your Branch specification under the VCS Root is configured correctly,

<p>
<img src="./Images/branch-spec.png" width="1000em"/>
</p>

Then set your environment variables,

<p>
<img src="./Images/envs.png" width="1000em"/>
</p>

Note that, the above environment variables (except for env.TEAMCITY_BUILD_URL) can alternatively be set via the command line,

env.TEAMCITY_BUILD_BRANCH => --branch
env.TEAMCITY_BUILD_ID => --build
env.TEAMCITY_BUILD_COMMIT => --sha
env.TEAMCITY_BUILD_REPOSITORY => --slug

Questions and Contributions

All types of contributions are welcome! Feel free to open an issue or contact us through the gitter channel mentioning either @larzw or @AdmiringWorm.

Known Issues

  • Specifiyng file paths with spaces is currently not possible without a workaround.
    This is expected to be fixed when a new major release of codecov-exe is released (See issue #71 for possible workaround and tracking).

Maintainers

To create a relase, please do the following:

  • Push the latest changes to the master branch on github
  • Navigate to the release page and view the drafted release.
  • Make any necessary changes.
  • Publish the draft release on GitHub, targeting the master branch.

Codecov global executable uploader for .NET Framework/Core based builds.

| https://codecov.io/ | @codecov | hello@codecov.io |
| ------------------------ | ------------- | --------------------- |

Introduction

Build status
NuGet
Chocolatey
Gitter
codecov

  1. This uploader supports Windows 7 (x64) and above, Linux (x64), and OS X (x64).

  2. The following Services are supported: AppVeyor, Azure Pipelines, TeamCity (see section on TeamCity), and Git.

  3. Many Codecov CLI options are supported. Run .\codecov.exe --help or see CommandLineOptions.cs for more details.

  4. On windows you can download the exe from NuGet or Chocolatey. There is also the .Net tool called Codecov.Tool which supports all platforms. As an alternative to NuGet or Chocolatey you can download the exe as the asset Codecov-{os}.zip under the release. The following PowerShell (version 5) commands might be helpful.

(New-Object System.Net.WebClient).DownloadFile("<url>", (Join-Path $pwd "Codecov.zip")) # Download Codecov.zip from github release.
Expand-Archive .\Codecov.zip -DestinationPath . # UnZip the file.
.\Codecov\codecov.exe # Run codecov.exe with whatever commands you need.

Quick Start

For a basic use case, in PowerShell run the following commands,

>  choco install codecov
>  .\codecov.exe -f <path to coverage report> -t <Codecov upload token>

For an AppVeyor build, the appveyor.yml file would look something like

before_build:
- choco install codecov
test_script:
# Note that, a Codecov upload token is not required.
- codecov -f <path to coverage report>

Cake Addin

If you use Cake (C# Make) for your builds, you may be intrested in the Cake.Codecov addin.

TeamCity

TeamCity does not automatically make build parameters available as environment variables. You will need to add the following environment parameters to the build configuration. To do this make sure your Branch specification under the VCS Root is configured correctly,

<p>
<img src="./Images/branch-spec.png" width="1000em"/>
</p>

Then set your environment variables,

<p>
<img src="./Images/envs.png" width="1000em"/>
</p>

Note that, the above environment variables (except for env.TEAMCITY_BUILD_URL) can alternatively be set via the command line,

env.TEAMCITY_BUILD_BRANCH => --branch
env.TEAMCITY_BUILD_ID => --build
env.TEAMCITY_BUILD_COMMIT => --sha
env.TEAMCITY_BUILD_REPOSITORY => --slug

Questions and Contributions

All types of contributions are welcome! Feel free to open an issue or contact us through the gitter channel mentioning either @larzw or @AdmiringWorm.

Known Issues

  • Specifiyng file paths with spaces is currently not possible without a workaround.
    This is expected to be fixed when a new major release of codecov-exe is released (See issue #71 for possible workaround and tracking).

Maintainers

To create a relase, please do the following:

  • Push the latest changes to the master branch on github
  • Navigate to the release page and view the drafted release.
  • Make any necessary changes.
  • Publish the draft release on GitHub, targeting the master branch.

Release Notes

All release notes for Codecov can be found on the GitHub site - https://github.com/codecov/codecov-exe/releases/tag/1.6.1

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
1.12.3 833 9/7/2020
1.12.2 1,461 8/17/2020
1.12.1 4,960 7/10/2020
1.12.0 857 6/23/2020
1.11.2 252 6/21/2020
1.11.1 22,892 6/10/2020
1.11.0 104 6/10/2020
1.10.0 21,709 2/1/2020
1.9.0 25,479 11/14/2019
1.8.0 5,240 10/31/2019
1.7.2 19,447 8/16/2019
1.7.1 437 8/2/2019
1.7.0 254 7/28/2019
1.6.1 432 7/16/2019
1.6.0 160 7/15/2019
1.5.0 38,996 5/5/2019
1.4.0 293 4/7/2019
1.3.0 299 2/28/2019
1.2.0 3,673 2/6/2019
Show less