func init() { options := executors.ExecutorOptions{ DefaultBuildsDir: "builds", SharedBuildsDir: false, Shell: common.ShellScriptInfo{ Shell: "bash", Type: common.LoginShell, }, ShowHostname: true, } create := func() common.Executor { return &ParallelsExecutor{ AbstractExecutor: executors.AbstractExecutor{ ExecutorOptions: options, }, } } common.RegisterExecutor("parallels", common.ExecutorFactory{ Create: create, Features: common.FeaturesInfo{ Variables: true, }, }) }
func init() { options := executors.ExecutorOptions{ DefaultBuildsDir: "builds", SharedBuildsDir: false, Shell: common.ShellScriptInfo{ Shell: "bash", Type: common.LoginShell, }, ShowHostname: true, } creator := func() common.Executor { return &ParallelsExecutor{ AbstractExecutor: executors.AbstractExecutor{ ExecutorOptions: options, }, } } featuresUpdater := func(features *common.FeaturesInfo) { features.Variables = true } common.RegisterExecutor("parallels", executors.DefaultExecutorProvider{ Creator: creator, FeaturesUpdater: featuresUpdater, }) }
func init() { options := executors.ExecutorOptions{ DefaultBuildsDir: "/builds", SharedBuildsDir: false, Shell: common.ShellScriptInfo{ Shell: "bash", Type: common.NormalShell, }, ShowHostname: true, SupportedOptions: []string{"image", "services"}, } create := func() common.Executor { return &DockerCommandExecutor{ DockerExecutor: DockerExecutor{ AbstractExecutor: executors.AbstractExecutor{ ExecutorOptions: options, }, }, } } common.RegisterExecutor("docker", common.ExecutorFactory{ Create: create, Features: common.FeaturesInfo{ Variables: true, Image: true, Services: true, }, }) }
func init() { options := executors.ExecutorOptions{ DefaultBuildsDir: "/builds", DefaultCacheDir: "/cache", SharedBuildsDir: false, Shell: common.ShellScriptInfo{ Shell: "bash", Type: common.NormalShell, }, ShowHostname: true, SupportedOptions: []string{"image", "services"}, } creator := func() common.Executor { return &DockerCommandExecutor{ DockerExecutor: DockerExecutor{ AbstractExecutor: executors.AbstractExecutor{ ExecutorOptions: options, }, }, } } featuresUpdater := func(features *common.FeaturesInfo) { features.Variables = true features.Image = true features.Services = true } common.RegisterExecutor("docker", executors.DefaultExecutorProvider{ Creator: creator, FeaturesUpdater: featuresUpdater, }) }
func init() { common.RegisterExecutor("shell", func() common.Executor { return &ShellExecutor{ AbstractExecutor: executors.AbstractExecutor{ DefaultBuildsDir: "tmp/builds", SharedBuildsDir: true, DefaultShell: common.GetDefaultShell(), ShellType: common.LoginShell, ShowHostname: false, }, } }) }
func init() { common.RegisterExecutor("ssh", func() common.Executor { return &SSHExecutor{ AbstractExecutor: executors.AbstractExecutor{ DefaultBuildsDir: "builds", SharedBuildsDir: true, DefaultShell: "bash", ShellType: common.LoginShell, ShowHostname: true, }, } }) }
func init() { common.RegisterExecutor("docker", func() common.Executor { return &DockerCommandExecutor{ DockerExecutor: DockerExecutor{ AbstractExecutor: executors.AbstractExecutor{ DefaultBuildsDir: "/builds", SharedBuildsDir: false, DefaultShell: "bash", ShellType: common.NormalShell, ShowHostname: true, }, }, } }) }
func init() { // Look for self runnerCommand, err := exec.LookPath(os.Args[0]) if err != nil { logrus.Warningln(err) } options := executors.ExecutorOptions{ DefaultBuildsDir: "$PWD/builds", DefaultCacheDir: "$PWD/cache", SharedBuildsDir: true, Shell: common.ShellScriptInfo{ Shell: common.GetDefaultShell(), Type: common.LoginShell, RunnerCommand: runnerCommand, }, ShowHostname: false, } creator := func() common.Executor { return &ShellExecutor{ AbstractExecutor: executors.AbstractExecutor{ ExecutorOptions: options, }, } } featuresUpdater := func(features *common.FeaturesInfo) { features.Variables = true } common.RegisterExecutor("shell", executors.DefaultExecutorProvider{ Creator: creator, FeaturesUpdater: featuresUpdater, }) }