Documentation ¶
Index ¶
- Constants
- func GetJobIdsFromTravisBuild(BuildRefId string, Token string) (error, []byte)
- func Handle(client *github.Client, event github.IssueCommentEvent, token, repoid string) error
- func SendHttpReqToCI(req *http.Request, Token string) (error, int, []byte)
- func SendToCIForRetestAllJobs(prID int, token, repoid string) error
- func SendToCIForTestJob(prID int, jobname, token, repoid string) error
- func StartToTriggerJob(TravisJobRespBody TravisJobRespStruct, jobname TravisJobType, token string) error
- func TriggerJob(JobBuildId string, Token string) error
- type TravisJobType
Constants ¶
View Source
const ( TravisCIEndPoint = "https://api.travis-ci.org" //travis-ci endpoint ContentTypeJSON = "application/json" //content-type TravisAPIVersion = "Travis-API-Version" //API version, a Mandatory header field for Travis-CI V3 APIs call )
View Source
const ( JobBuild = iota + 1 JobVerify JobUnittest JobIntegration JobCrossbuild )
Travis Job Id's
Variables ¶
This section is empty.
Functions ¶
func GetJobIdsFromTravisBuild ¶
GetJobIdsFromTravisBuild Function to handle Get Jobs from TravisCI
func SendHttpReqToCI ¶
SendHttpReqToCI Function to handle send HTTP request to TravisCI
func SendToCIForRetestAllJobs ¶
SendToCIForRetestAllJobs Function to handle RETEST all jobs on PR changes
func SendToCIForTestJob ¶
SendToCIForTestJob Function to handle TEST on particular JOB
func StartToTriggerJob ¶
func StartToTriggerJob(TravisJobRespBody TravisJobRespStruct, jobname TravisJobType, token string) error
StartToTriggerJob Function to handle travis build job trigger
func TriggerJob ¶
TriggerJob Function to handle Triggering Jobs build in TravisCI
Types ¶
type TravisJobType ¶
type TravisJobType string
const ( Build TravisJobType = "build" Verify TravisJobType = "verify" Unittest TravisJobType = "unittest" Integration TravisJobType = "integration" Crossbuild TravisJobType = "crossbuild" )
Travis Build Job Names
Click to show internal directories.
Click to hide internal directories.