test

package
v0.7.24 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2019 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = cli.Command{
	Name:   "test",
	Usage:  "Test current revision against FOSSA scan status and exit with errors if issues are found",
	Action: Run,
	Flags: flags.WithGlobalFlags(flags.WithAPIFlags(([]cli.Flag{
		cli.IntFlag{Name: Timeout, Value: 10 * 60, Usage: "duration to wait for build completion (in seconds)"},
		cli.BoolFlag{Name: SuppressIssues, Usage: "don't exit on stderr if issues are found"},
	}))),
}
View Source
var SuppressIssues = "suppress-issues"
View Source
var Timeout = "timeout"

Functions

func CheckBuild

func CheckBuild(locator fossa.Locator, stop <-chan time.Time) (fossa.Build, error)

func CheckIssues

func CheckIssues(locator fossa.Locator, stop <-chan time.Time) (fossa.Issues, error)

CheckIssues polls the issues endpoint until an issue scan has been run on the latest project revision.

func Do

func Do(stop <-chan time.Time) (fossa.Issues, error)

func Run

func Run(ctx *cli.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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