retest

package
v0.0.0-...-0f89c28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

func GetJobIdsFromTravisBuild(BuildRefId string, Token string) (error, []byte)

GetJobIdsFromTravisBuild Function to handle Get Jobs from TravisCI

func Handle

func Handle(client *github.Client, event github.IssueCommentEvent, token, repoid string) error

Handle event with label

func SendHttpReqToCI

func SendHttpReqToCI(req *http.Request, Token string) (error, int, []byte)

SendHttpReqToCI Function to handle send HTTP request to TravisCI

func SendToCIForRetestAllJobs

func SendToCIForRetestAllJobs(prID int, token, repoid string) error

SendToCIForRetestAllJobs Function to handle RETEST all jobs on PR changes

func SendToCIForTestJob

func SendToCIForTestJob(prID int, jobname, token, repoid string) error

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

func TriggerJob(JobBuildId string, Token string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL