travisci

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

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.

func Builds

func Builds(user, repo string) ([]Build, error)

func (*Build) String

func (b *Build) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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