server

package
v0.0.0-...-14868f9 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config struct {
	WS struct {
		Bind string
	}
	Architectures []string
	Runners       []Runner
	DB            lib.DBConfig
	GitHub        struct {
		AppID          int64 `mapstructure:"app_id"`
		Secret         string
		PrivateKeyFile string `mapstructure:"private_key_file"`
	}
}

Functions

func GitHubClient

func GitHubClient(installationID int64) *github.Client

func LoadConfig

func LoadConfig(path string) error

func Perm

func Perm(set []string, k int) [][]string

func RepeatByArchitectures

func RepeatByArchitectures(tmpl []TestRequirements, architectures []string) []TestRequirementsMatrix

func RepeatByFQBNs

func RepeatByFQBNs(tmpl []TestRequirements, fqbns []string) []TestRequirementsMatrix

func StartResultsHandler

func StartResultsHandler()

func StartScanner

func StartScanner()

StartScanner listens to a queue containing incoming check_suite notifications from GitHub. For each newly created check_suite, the repository is cloned locally and inspected to find runnable tests. A job matrix is then generated according to the repository type (core, library, sketch) and its properties.

func StartWebService

func StartWebService()

Types

type Runner

type Runner struct {
	ID string
}

Jump to

Keyboard shortcuts

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