fixtures

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2018 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Directory

func Directory() string

Directory returns the directory under which tests fixtures should be placed

func Initialize added in v0.7.10

func Initialize(baseDir string, projects []Project, initializerFn ProjectInitializerFunction)

Initialize executes git clone in target directory and checksout the provided commit, then runts the initializerFn. This is done asynchronously for each provided project

Types

type Project

type Project struct {
	Name    string
	URL     string
	Commit  string
	Options map[string]interface{}
	Env     map[string]string
}

Project describes a git repo for a test fixture and env vars for when it is to be built

type ProjectInitializerFunction added in v0.7.10

type ProjectInitializerFunction func(proj Project, projectDir string) error

ProjectInitializerFunction defines how a single project should be initialized *after* it has already been cloned

Jump to

Keyboard shortcuts

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