Skip to content

Little SVG widget to display AppVeyor, TravisCI or CircleCI build history charts and other SVG badges.

License

Notifications You must be signed in to change notification settings

nagyistge/CI-BuildStats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A little SVG widget to display build history charts and other badges for public repositories.

Build status

Build history

Build History Chart

Support

The SVG widget currently works for public repositories built with:

AppVeyorTravisCICircleCI

How it works

The base URL to the SVG widget is:

https://buildstats.info/{buildSystem}/chart/{account}/{project}

Replace {buildSystem} with one of the supported build systems:

  • appveyor
  • travisci
  • circleci

Replace {account} and {project} with your personal values.

For example https://buildstats.info/appveyor/chart/dustinmoris/ci-buildstats displays the build history chart for this particular project.

The complete markdown for the above chart is as following:

[![Build history](https://buildstats.info/appveyor/chart/dustinmoris/ci-buildstats)](https://ci.appveyor.com/project/dustinmoris/ci-buildstats/history)

Configuration

Filtering for a specific branch

By default the widget will render a chart for builds from all branches.

You can select a specific branch by appending the branch parameter to the URL (optional):

https://buildstats.info/{buildSystem}/chart/{account}/{project}?branch={branch}

Changing the number of builds

You can specify the maximum build count by appending the buildCount parameter to the URL (optional):

https://buildstats.info/{buildSystem}/chart/{account}/{project}?buildCount={number}

Excluding builds from a pull request

Use the includeBuildsFromPullRequest parameter to include or exclude builds from a pull request (optional):

https://buildstats.info/{buildSystem}/chart/{account}/{project}?includeBuildsFromPullRequest={true/false}

Hiding the text

You can hide the build stats by appending the showstats parameter to the URL (optional):

https://buildstats.info/{buildSystem}/chart/{account}/{project}?showstats={true/false}

Full URL

The full URL to the SVG widget is:

https://buildstats.info/{buildSystem}/chart/{account}/{project}[?buildCount={buildCount}&branch={branch}&includeBuildsFromPullRequest={includeBuildsFromPullRequest}&showStats={true/false}]

Examples

The SVG widget for Buildstats.info

  • which is build with AppVeyor
  • for the last 40 builds
  • and only from the master branch

is as following:

Build history

NuGet Badge

NuGet badges are in beta state at the moment.

The URL to the NuGet badge is:

https://buildstats.info/nuget/{packageName}

For example the badge and Markdown for the NUnit NuGet badge would be:

NuGet Badge

[![NuGet Badge](https://buildstats.info/nuget/nunit)](https://www.nuget.org/packages/NUnit/)

Including PreRelease packages

You can append the includePreReleases=true flag to include pre-release packages:

NuGet Badge

[![NuGet Badge](https://buildstats.info/nuget/NServiceBus.PostgreSQL?includePreReleases=true)](https://www.nuget.org/packages/NServiceBus.PostgreSQL/1.0.0-CI00021)

MyGet Badge

MyGet badges are in alpha state.

The URL to the MyGet badge is:

https://buildstats.info/myget/{feedName}/{packageName}

For example the badge and Markdown for the NEventSocket MyGet badge would be:

MyGet Badge

[![MyGet Badge](https://buildstats.info/myget/neventsocket-prerelease/NEventSocket)](https://www.myget.org/feed/neventsocket-prerelease/package/nuget/NEventSocket)

Contribution

Feedback is welcome and pull requests get accepted.

About

Little SVG widget to display AppVeyor, TravisCI or CircleCI build history charts and other SVG badges.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 95.2%
  • HTML 4.6%
  • Classic ASP 0.2%