Documentation ¶
Overview ¶
Package travisci implements a library to query Travis-CI builds using their JSON API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct {
Id, RepositoryId, Number int
State string
Success bool
Started, Finished time.Time
Duration int
Commit, Branch, Message string
EventType string
BuildURL, CommitURL string
}
Build represents a Travis-CI build. Compared to the JSON: 1) Started/Finished replace StartedAt/FinishedAt and are of type time.Time 2) Success replaces Result and is of type bool When build state is in progress (e.g. not "finished"), Started/Finished are not set (zero value of time.Time) because Travis-CI does not provide them.
Click to show internal directories.
Click to hide internal directories.