Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct { // Image specifies the Docker Image that will be // used to virtualize the Build process. Image string // Name specifies a user-defined label used // to identify the build. Name string // Script specifies the build and test commands. Script []string // Env specifies the environment of the build. Env []string // Hosts specifies the custom IP address and // hostname mappings. Hosts []string // Cache lists a set of directories that should // persisted between builds. Cache []string // Services specifies external services, such as // database or messaging queues, that should be // linked to the build environment. Services []string Deploy *deploy.Deploy `yaml:"deploy,omitempty"` Publish *publish.Publish `yaml:"publish,omitempty"` Notifications *notify.Notification `yaml:"notify,omitempty"` // Git specified git-specific parameters, such as // the clone depth and path Git *git.Git `yaml:"git,omitempty"` }
Build stores the configuration details for building, testing and deploying code.
func ParseBuildFile ¶
func (*Build) Write ¶
Write adds all the steps to the build script, including build commands, deploy and publish commands.
func (*Build) WriteBuild ¶
WriteBuild adds only the build steps to the build script, omitting publish and deploy steps. This is important for pull requests, where deployment would be undesirable.
type Deployment ¶
type Notification ¶
type Notification interface {
Set(c Context)
}
Click to show internal directories.
Click to hide internal directories.