printf '0.4.%d', q$Rev: 1 $ =~ /\d+/gmx );
use Getopt::Long;
use HTTP::Tiny;
use JSON::PP qw( decode_json encode_json );
my $URI_TEMPLATE = 'http://localhost:5000/coverage/report/%s';
# Private sub
Content-Type' => 'application/json' } );
my $uri = sprintf $config->{option}->{uri_template}, lc $dist;
my $resp = $http->post( $uri, { content => encode_json $report } );
if ($resp->
{success}) {
my $content = decode_json $resp->{content};
print $content->{message}."\n";
}
else {
warn 'Coverage upload status '.$resp->{status}.': '.$resp->{reason}."\n";