Badge::Depot::Plugin::Travis - Travis plugin for Badge::Depot
Version 0.0203, released 2016-04-09.
use Badge::Depot::Plugin::Travis;
my $badge = Badge::Depot::Plugin::Travis->new(user => 'my_name', repo => 'the_repo', branch => 'master');
print $badge->to_html;
# prints '<a href="https://travis-ci.org/my_name/my_repo"><img src="https://api.travis-ci.org/my_name/my_repo.svg?branch=master" /></a>'
Create a Travis badge for a github repository.
This class consumes the Badge::Depot role.
The user
and repo
attributes are required or optional, depending on your configuration. It looks for the resources/repository/web
setting in META.json
:
- If
META.json
doesn't exist in the dist root,user
andrepo
are required. - If
resources/repository/web
doesn't exist (or is not a github url),user
andrepo
are required.
Github username.
Github repository.
Github branch. Optional, master
by default.
https://github.com/Csson/p5-Badge-Depot-Plugin-Travis
https://metacpan.org/release/Badge-Depot-Plugin-Travis
Erik Carlsson info@code301.com
This software is copyright (c) 2016 by Erik Carlsson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.