golang

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package golang provides golang toolchain (go) support for dukkha

Index

Constants

View Source
const TaskKindBuild = "build"
View Source
const TaskKindTest = "test"
View Source
const ToolKind = "golang"

Variables

This section is empty.

Functions

This section is empty.

Types

type CGOSepc

type CGOSepc struct {
	rs.BaseField `yaml:"-"`

	// Enable cgo
	Enabled bool `yaml:"enabled"`

	// CGO_CPPFLAGS
	CPPFlags []string `yaml:"cppflags"`

	// CGO_CFLAGS
	CFlags []string `yaml:"cflags"`

	// CGO_CXXFLAGS
	CXXFlags []string `yaml:"cxxflags"`

	// CGO_FFLAGS
	FFlags []string `yaml:"fflags"`

	// CGO_LDFLAGS
	LDFlags []string `yaml:"ldflags"`

	CC string `yaml:"cc"`

	CXX string `yaml:"cxx"`

	FC string `yaml:"fc"`
}

type TaskBuild

type TaskBuild struct {
	rs.BaseField `yaml:"-"`

	tools.BaseTask `yaml:",inline"`

	Chdir     string   `yaml:"chdir"`
	Path      string   `yaml:"path"`
	ExtraArgs []string `yaml:"extra_args"`
	Outputs   []string `yaml:"outputs"`

	BuildOptions buildOptions `yaml:",inline"`

	CGO CGOSepc `yaml:"cgo"`
}

func (*TaskBuild) GetExecSpecs

type TaskTest

type TaskTest struct {
	rs.BaseField `yaml:"-"`

	tools.BaseTask `yaml:",inline"`

	CGO CGOSepc `yaml:"cgo"`

	Path  string `yaml:"path"`
	Chdir string `yaml:"chdir"`

	Build buildOptions `yaml:",inline"`
	Test  testSpec     `yaml:",inline"`

	Benchmark testBenchmarkSpec `yaml:"benchmark"`
	Profile   testProfileSpec   `yaml:"profile"`

	// CustomCmdPrefix to run compiled test file with this cmd prefix
	CustomCmdPrefix []string `yaml:"custom_cmd_prefix"`

	// custom args only used when running the test
	CustomArgs []string `yaml:"custom_args"`
}

func (*TaskTest) GetExecSpecs

func (c *TaskTest) GetExecSpecs(
	rc dukkha.TaskExecContext, options dukkha.TaskMatrixExecOptions,
) ([]dukkha.TaskExecSpec, error)

type Tool

type Tool struct {
	rs.BaseField `yaml:"-"`

	tools.BaseTool `yaml:",inline"`
}

func (*Tool) Init

func (t *Tool) Init(kind dukkha.ToolKind, cachdDir string) error

Jump to

Keyboard shortcuts

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