Documentation
¶
Index ¶
- type Addons
- type Apt
- type AptSource
- type AptSources
- type Artifacts
- type Branches
- type Browserstack
- type Cache
- type Codeclimate
- type Coverity
- type CoverityProject
- type Depth
- type Env
- type Envmap
- type Git
- type Homebrew
- type Import
- type Imports
- type Jobs
- type Notifications
- type Pipeline
- type Sauce
- type Secure
- type Snap
- type Snaps
- type Sonarcloud
- type Stage
- type Stages
- type Stringorslice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addons ¶
type Addons struct { Apt *Apt `yaml:"apt,omitempty"` AptPackage Stringorslice `yaml:"apt_package,omitempty"` Artifacts *Artifacts `yaml:"artifacts,omitempty"` Browserstack *Browserstack `yaml:"browserstack,omitempty"` Chrome string `yaml:"chrome,omitempty"` Codeclimate *Codeclimate `yaml:"codeclimate,omitempty"` Coverity *Coverity `yaml:"coverity_scan,omitempty"` Firefox string `yaml:"firefox,omitempty"` Homebrew *Homebrew `yaml:"homebrew,omitempty"` Hostname string `yaml:"hostname,omitempty"` Hosts Stringorslice `yaml:"hosts,omitempty"` Mariadb string `yaml:"mariadb,omitempty"` Postgres string `yaml:"postgresql,omitempty"` Postgresql string `yaml:"postgres,omitempty"` Rethinkdb string `yaml:"rethinkdb,omitempty"` Sauce *Sauce `yaml:"sauce_connect,omitempty"` Snaps *Snaps `yaml:"snaps,omitempty"` Sonarcloud *Sonarcloud `yaml:"sonarcloud,omitempty"` }
type Apt ¶
type Apt struct { Enabled bool `yaml:"enabled,omitempty"` Packages []string `yaml:"packages,omitempty"` Sources []*AptSource `yaml:"sources,omitempty"` Dist string `yaml:"dist,omitempty"` Update bool `yaml:"bool,omitempty"` }
func (*Apt) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type AptSource ¶
type AptSource struct { Alias string `yaml:"alias,omitempty"` Sourceline string `yaml:"sourceline,omitempty"` KeyURL string `yaml:"key_url,omitempty"` CanonicalKeyURL string `yaml:"canonical_key_url,omitempty"` }
func (*AptSource) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type AptSources ¶
type AptSources struct {
Items []*AptSource
}
func (*AptSources) UnmarshalYAML ¶
func (v *AptSources) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the unmarshal interface.
type Artifacts ¶
type Artifacts struct { Enabled bool `yaml:"enabled,omitempty"` Bucket string `yaml:"bucket,omitempty"` Key *Secure `yaml:"key,omitempty"` Secret *Secure `yaml:"secret,omitempty"` Region string `yaml:"region,omitempty"` Paths []string `yaml:"paths,omitempty"` Branch string `yaml:"branch,omitempty"` LogFormat string `yaml:"log_format,omitempty"` TargetPaths []string `yaml:"target_paths,omitempty"` Debug bool `yaml:"debug,omitempty"` Concurrency int `yaml:"concurrency,omitempty"` MaxSize int64 `yaml:"max_size,omitempty"` Permissions string `yaml:"permissions,omitempty"` WorkingDir string `yaml:"working_dir,omitempty"` CacheControl string `yaml:"cache_control,omitempty"` }
func (*Artifacts) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Branches ¶
type Branches struct { Only []string `yaml:"only,omitempty"` Except []string `yaml:"except,omitempty"` }
func (*Branches) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Browserstack ¶
type Browserstack struct { Enabled bool `yaml:"enabled,omitempty"` Username *Secure `yaml:"username,omitempty"` AccessKey *Secure `yaml:"access_key,omitempty"` ForceLocal bool `yaml:"forcelocal,omitempty"` Only string `yaml:"only,omitempty"` AppPath string `yaml:"app_path,omitempty"` ProxyHost string `yaml:"proxyHost,omitempty"` ProxyPort string `yaml:"proxyPort,omitempty"` ProxyUser string `yaml:"proxyUser,omitempty"` ProxyPass *Secure `yaml:"proxyPass,omitempty"` }
func (*Browserstack) UnmarshalYAML ¶
func (v *Browserstack) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the unmarshal interface.
type Cache ¶
type Cache struct { Directories []string `yaml:"directories,omitempty"` Apt bool `yaml:"apt,omitempty"` Bundler bool `yaml:"bundler,omitempty"` Cargo bool `yaml:"cargo,omitempty"` Ccache bool `yaml:"ccache,omitempty"` Cocoapods bool `yaml:"cocoapods,omitempty"` Npm bool `yaml:"npm,omitempty"` Packages bool `yaml:"packages,omitempty"` Pip bool `yaml:"pip,omitempty"` Yarn bool `yaml:"yarn,omitempty"` Edge bool `yaml:"edge,omitempty"` Branch string `yaml:"branch,omitempty"` Timeout int `yaml:"timeout,omitempty"` }
func (*Cache) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Codeclimate ¶
type Codeclimate struct { Enabled bool `yaml:"enabled,omitempty"` RepoToken *Secure `yaml:"repo_token,omitempty"` }
func (*Codeclimate) UnmarshalYAML ¶
func (v *Codeclimate) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the unmarshal interface.
type Coverity ¶
type Coverity struct { Enabled bool `yaml:"enabled,omitempty"` Project *CoverityProject `yaml:"project,omitempty"` BuildScriptURL string `yaml:"build_script_url,omitempty"` BranchPattern string `yaml:"branch_pattern,omitempty"` NotificationEmail *Secure `yaml:"notification_email,omitempty"` BuildCommand string `yaml:"build_command,omitempty"` BuildCommandPrepend string `yaml:"build_command_prepend,omitempty"` }
func (*Coverity) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type CoverityProject ¶
type CoverityProject struct { Name string `yaml:"name,omitempty"` Version string `yaml:"version,omitempty"` Description string `yaml:"description,omitempty"` }
func (*CoverityProject) UnmarshalYAML ¶
func (v *CoverityProject) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the unmarshal interface.
type Depth ¶
type Depth struct {
Value int
}
Depth sets the clone depth.
func (*Depth) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Env ¶
type Env struct { Global []map[string]string `yaml:"global,omitempty"` Jobs []map[string]string `yaml:"jobs,omitempty"` }
func (*Env) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Envmap ¶
func (*Envmap) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Git ¶
type Git struct { Strategy string `yaml:"strategy,omitempty"` // enum: clone, tarball Depth *Depth `yaml:"depth,omitempty"` Quiet bool `yaml:"quiet,omitempty"` Submodules bool `yaml:"submodules,omitempty"` SubmodulesDepth int `yaml:"submodules_depth,omitempty"` LFSSkipSmudge bool `yaml:"lfs_skip_smudge,omitempty"` SparseCheckout string `yaml:"sparse_checkout,omitempty"` Autocrlf string `yaml:"autocrlf,omitempty"` }
type Homebrew ¶
type Homebrew struct { Update bool `yaml:"update,omitempty"` Packages []string `yaml:"packages,omitempty"` Casks []string `yaml:"casks,omitempty"` Taps []string `yaml:"taps,omitempty"` Brewfile string `yaml:"brewfile,omitempty"` // string or bool }
func (*Homebrew) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Import ¶
type Import struct { Source string `yaml:"source,omitempty"` Mode string `yaml:"mode,omitempty"` // merge, deep_merge, deep_merge_append, deep_merge_prepend If string `yaml:"if,omitempty"` }
func (*Import) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Imports ¶
type Imports struct {
Items []*Import
}
func (*Imports) MarshalYAML ¶
MarshalYAML implements the marshal interface.
func (*Imports) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Jobs ¶
type Jobs struct { Include []map[string]string `yaml:"include,omitempty"` Exclude []map[string]string `yaml:"exclude,omitempty"` AllowFailures []map[string]string `yaml:"allow_failures,omitempty"` FastFinish bool `yaml:"fast_finish,omitempty"` }
func (*Jobs) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Notifications ¶
type Notifications struct { }
type Pipeline ¶
type Pipeline struct { Language string `yaml:"language,omitempty"` OS Stringorslice `yaml:"os,omitempty"` OSXImage Stringorslice `yaml:"osx_image,omitempty"` Arch Stringorslice `yaml:"arch,omitempty"` Addons *Addons `yaml:"addons,omitempty"` Branches *Branches `yaml:"branches,omitempty"` Cache *Cache `yaml:"cache,omitempty"` Compiler Stringorslice `yaml:"compiler,omitempty"` Deploy interface{} `yaml:"deploy,omitempty"` // TODO Dist string `yaml:"dist,omitempty"` Env *Env `yaml:"env,omitempty"` Git *Git `yaml:"git,omitempty"` If string `yaml:"if,omitempty"` Import *Imports `yaml:"import,omitempty"` Jobs *Jobs `yaml:"jobs,omitempty"` Notifications *Notifications `yaml:"notifications,omitempty"` // TODO Services Stringorslice `yaml:"services,omitempty"` Stages *Stages `yaml:"stages,omitempty"` Version string `yaml:"version,omitempty"` BeforeInstall Stringorslice `yaml:"before_install,omitempty"` Install Stringorslice `yaml:"install,omitempty"` BeforeScript Stringorslice `yaml:"before_script,omitempty"` Script Stringorslice `yaml:"script,omitempty"` BeforeCache Stringorslice `yaml:"before_cache,omitempty"` AfterSuccess Stringorslice `yaml:"after_success,omitempty"` AfterFailure Stringorslice `yaml:"after_failure,omitempty"` BeforeDeploy Stringorslice `yaml:"before_deploy,omitempty"` AfterDeploy Stringorslice `yaml:"after_deploy,omitempty"` AfterScript Stringorslice `yaml:"after_script,omitempty"` // Android // https://config.travis-ci.com/ref/language/android Android interface{} `yaml:"android,omitempty"` // matrix expand key (TODO) // Clojure Lein string `yaml:"lein,omitempty"` // Crystal Crystal Stringorslice `yaml:"crystal,omitempty"` // matrix expand key // D D Stringorslice `yaml:"d,omitempty"` // matrix expand key // Dart Language Dart Stringorslice `yaml:"dart,omitempty"` // matrix expand key DartTask interface{} `yaml:"dart_task,omitempty"` // matrix expand key (TODO) DartWithContentShell bool `yaml:"with_content_shell,omitempty"` // Dotnet Language (C#) Dotnet Stringorslice `yaml:"dotnet,omitempty"` // matrix expand key DotnetMono Stringorslice `yaml:"mono,omitempty"` // matrix expand key DotnetSolution Stringorslice `yaml:"solution,omitempty"` // matrix expand key // Elixir Language Elixir Stringorslice `yaml:"elixir,omitempty"` // matrix expand key // Elm Language Elm Stringorslice `yaml:"elm,omitempty"` // matrix expand key ElmFormat string `yaml:"elm_format,omitempty"` ElmTest string `yaml:"elm_test,omitempty"` // Erlang Language ErlangOTP Stringorslice `yaml:"otp_release,omitempty"` // matrix expand key // Go Language Go Stringorslice `yaml:"go,omitempty"` // matrix expand key GoBuildArgs string `yaml:"gobuild_args,omitempty"` GoImportPath string `yaml:"go_import_path,omitempty"` // Hack Language HHVM Stringorslice `yaml:"hhvm,omitempty"` // matrix expand key // Haxe Language Haxe Stringorslice `yaml:"haxe,omitempty"` // matrix expand key HaxeXML Stringorslice `yaml:"hxml,omitempty"` HaxeNeko string `yaml:"neko,omitempty"` // Haskell Language GHC Stringorslice `yaml:"ghc,omitempty"` // matrix expand key // Java Language JDK Stringorslice `yaml:"jdk,omitempty"` // matrix expand key // Javascript Language Node Stringorslice `yaml:"node_js,omitempty"` // matrix expand key NodeNpmArgs string `yaml:"npm_args,omitempty"` // Julia Language Julia Stringorslice `yaml:"julia,omitempty"` // matrix expand key // Matlab Language Matlab Stringorslice `yaml:"matlab,omitempty"` // matrix expand key // Nix Language Nix Stringorslice `yaml:"nix,omitempty"` // matrix expand key // ObjectiveC XcodeScheme Stringorslice `yaml:"xcode_scheme,omitempty"` // matrix expand key XcodeSDK Stringorslice `yaml:"xcode_sdk,omitempty"` // matrix expand key XcodeDestination string `yaml:"xcode_destination,omitempty"` XcodeProject string `yaml:"xcode_project,omitempty"` XcodeToolArgs string `yaml:"xctool_args,omitempty"` XcodePodfile string `yaml:"xctool_podfile,omitempty"` // Php Language PHP Stringorslice `yaml:"php,omitempty"` // matrix expand key PHPComposerArgs string `yaml:"composer_args,omitempty"` // Perl Language Perl Stringorslice `yaml:"perl,omitempty"` // matrix expand key Perl6 Stringorslice `yaml:"perl6,omitempty"` // matrix expand key // Python Langauge Python Stringorslice `yaml:"python,omitempty"` // matrix expand key PythonVirtualenv map[string]interface{} `yaml:"virtualenv,omitempty"` PythonVirtualenvAlias map[string]interface{} `yaml:"virtual_env,omitempty"` // R Langauge // https://config.travis-ci.com/ref/language/r R Stringorslice `yaml:"r,omitempty"` // matrix expand key RPackage Stringorslice `yaml:"r_packages,omitempty"` RBinaryPackages Stringorslice `yaml:"r_binary_packages,omitempty"` RGithubPackage Stringorslice `yaml:"r_github_packages,omitempty"` // Ruby Language Ruby Stringorslice `yaml:"ruby,omitempty"` // matrix expand key RubyRVM Stringorslice `yaml:"rvm,omitempty"` // alias for ruby RubyRBenv Stringorslice `yaml:"rbenv,omitempty"` // alias for ruby RubyGemfile Stringorslice `yaml:"gemfile,omitempty"` RubyGemfiles Stringorslice `yaml:"gemfiles,omitempty"` // alias for gemfile RubyBundlerArgs string `yaml:"bundler_args,omitempty"` // Rust Langauge Rust Stringorslice `yaml:"rust,omitempty"` // matrix expand key // Scala Langauge Scala Stringorslice `yaml:"scala,omitempty"` // matrix expand key ScalaSbtArgs string `yaml:"sbt_args,omitempty"` // Smalltalk Language Smalltalk Stringorslice `yaml:"smalltalk,omitempty"` // matrix expand key SmalltalkConfig Stringorslice `yaml:"smalltalk_config,omitempty"` // matrix expand key SmalltalkVM Stringorslice `yaml:"smalltalk_vm,omitempty"` // matrix expand key }
Pipeline defines a gitlab pipeline. https://config.travis-ci.com/index
func ParseBytes ¶
ParseBytes parses the configuration from bytes b.
func ParseString ¶
ParseString parses the configuration from string s.
type Sauce ¶
type Sauce struct { Enabled bool `yaml:"enabled,omitempty"` Username *Secure `yaml:"username,omitempty"` AccessKey *Secure `yaml:"access_key,omitempty"` DirectDomains string `yaml:"direct_domains,omitempty"` TunnelDomains string `yaml:"tunnel_domains,omitempty"` NoSSLBumpDomains string `yaml:"no_ssl_bump_domains,omitempty"` }
func (*Sauce) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Secure ¶
Secure represents a secure variable.
func (*Secure) MarshalJSON ¶
MarshalJSON implements the marshal interface.
func (*Secure) MarshalYAML ¶
MarshalYAML implements the marshal interface.
func (*Secure) UnmarshalJSON ¶
UnmarshalJSON implements the unmarshal interface.
func (*Secure) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Snap ¶
type Snap struct { Name string `yaml:"name,omitempty"` Classic bool `yaml:"classic,omitempty"` Channel string `yaml:"channel,omitempty"` }
func (*Snap) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Snaps ¶
type Snaps struct {
Items []*Snap
}
func (*Snaps) MarshalYAML ¶
MarshalYAML implements the marshal interface.
func (*Snaps) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Sonarcloud ¶
type Sonarcloud struct { Enabled bool `yaml:"enabled,omitempty"` Organization string `yaml:"organization,omitempty"` Token *Secure `yaml:"token,omitempty"` GithubToken *Secure `yaml:"github_token,omitempty"` Branches []string `yaml:"branches,omitempty"` }
func (*Sonarcloud) UnmarshalYAML ¶
func (v *Sonarcloud) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the unmarshal interface.
type Stage ¶
Stage defines a buld stage.
func (*Stage) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Stages ¶
type Stages struct {
Items []*Stage
}
Stages defines a set of build stages. Build stages are run sequentially. Stages run their Jobs in parallel.
https://config.travis-ci.com/ref/stages
func (*Stages) MarshalYAML ¶
MarshalYAML implements the marshal interface.
func (*Stages) UnmarshalYAML ¶
UnmarshalYAML implements the unmarshal interface.
type Stringorslice ¶
type Stringorslice []string
Stringorslice represents a string or an array of strings.
func (*Stringorslice) UnmarshalYAML ¶
func (s *Stringorslice) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the unmarshal interface.
Source Files
¶
- addons.go
- addons_apt.go
- addons_artifacts.go
- addons_browserstack.go
- addons_codeclimate.go
- addons_coverity.go
- addons_homebrew.go
- addons_sauce.go
- addons_snaps.go
- addons_sonarcloud.go
- branches.go
- cache.go
- enum_arch.go
- enum_compiler.go
- enum_distro.go
- enum_lang.go
- enum_os.go
- enum_service.go
- env.go
- git.go
- import.go
- job.go
- notification.go
- notification_email.go
- notification_irc.go
- notification_opsgenie.go
- notification_pushover.go
- notification_slack.go
- notification_webhook.go
- parse.go
- pipeline.go
- secure.go
- stage.go
- strings.go