Open
Description
Usage
$ xp coverage -p src/main/php -j coveralls.json,$API_TOKEN src/test/php
# ...
$ curl -x POST -F '[email protected]' https://coveralls.io/api/v1/jobs
API
POST https://coveralls.io/api/v1/jobs
{
"run_at" : "2018-09-23 15:06:08 +0000",
"git" : {
"head" : {
"author_name" : "Timm Friebe",
"committer_email" : "[email protected]",
"author_email" : "[email protected]",
"id" : "d03c81753e382c494697e08f5a75826c3858a608",
"message" : "Fix newline and comment handling inside structures",
"committer_name" : "Timm Friebe"
},
"remotes" : [
{
"url" : "[email protected]:xp-forge/yaml.git",
"name" : "origin"
}
],
"branch" : "master"
},
"repo_token" : "...",
"service_name" : "php-coveralls",
"service_event_type" : "manual",
"source_files" : [
{
"coverage" : [
null,
null,
0
],
"source" : "<?php namespace xp;\n\n\\lang\\ClassLoader::registerPath(__DIR__);",
"name" : "src\\main\\php\\autoload.php"
},
…
]
}
See https://docs.coveralls.io/api-reference
Outcome
The paths with the Windows directory separator \
break the detailed view in Coveralls and should probably be translated to /
before uploading!