Documentation

Jobs extends CoverallsApi
in package

Jobs API.

Tags
author

Kitamura Satoshi with.no.parachute@gmail.com

Table of Contents

Constants

FILENAME  = 'json_file'
Filename as a POST parameter.
URL  = '/api/v1/jobs'
URL for jobs API.

Properties

$client  : Client
HTTP client.
$config  : Configuration
Configuration.
$jsonFile  : JsonFile
JsonFile.

Methods

__construct()  : mixed
Constructor.
collectCloverXml()  : $this
Collect clover XML into json_file.
collectEnvVars()  : $this
Collect environment variables.
collectGitInfo()  : $this
Collect git repository info into json_file.
dumpJsonFile()  : $this
Dump uploading json file.
getConfiguration()  : Configuration
Return configuration.
getHttpClient()  : Client
Return HTTP client.
getJsonFile()  : null|JsonFile
Return JsonFile.
send()  : null|Response
Send json_file to jobs API.
setHttpClient()  : $this
Set HTTP client.
setJsonFile()  : $this
Set JsonFile.
upload()  : Response
Upload a file.

Constants

FILENAME

Filename as a POST parameter.

public string FILENAME = 'json_file'

URL

URL for jobs API.

public string URL = '/api/v1/jobs'

Properties

Methods

collectCloverXml()

Collect clover XML into json_file.

public collectCloverXml() : $this
Return values
$this

collectEnvVars()

Collect environment variables.

public collectEnvVars(array<string|int, mixed> $env) : $this
Parameters
$env : array<string|int, mixed>

$_SERVER environment

Tags
throws
RequirementsNotSatisfiedException
Return values
$this

collectGitInfo()

Collect git repository info into json_file.

public collectGitInfo() : $this
Return values
$this

dumpJsonFile()

Dump uploading json file.

public dumpJsonFile() : $this
Return values
$this

setHttpClient()

Set HTTP client.

public setHttpClient(Client $client) : $this
Parameters
$client : Client

hTTP client

Return values
$this

setJsonFile()

Set JsonFile.

public setJsonFile(JsonFile $jsonFile) : $this
Parameters
$jsonFile : JsonFile

json_file content

Return values
$this

upload()

Upload a file.

protected upload(string $url, string $path, string $filename) : Response
Parameters
$url : string

uRL to upload

$path : string

file path

$filename : string

filename

Return values
Response

        
On this page

Search results