Skip to content

Add upload to coveralls #7

Open
@thekid

Description

@thekid

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

coveralls

The paths with the Windows directory separator \ break the detailed view in Coveralls and should probably be translated to / before uploading!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions