From 3493b868efdc8164c1ff0706e7526f70f8f5e933 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Tue, 9 Sep 2014 21:41:11 -0700 Subject: [PATCH] upgrade go1.3 and irc library --- .drone.yml | 2 +- plugin/notify/irc.go | 12 ++++++------ shared/build/images.go | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index af9fc1212..03248fb62 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,4 +22,4 @@ publish: access_key: $AWS_KEY secret_key: $AWS_SECRET source: debian/drone.deb - target: $DRONE_BRANCH/ \ No newline at end of file + target: $DRONE_BRANCH/ diff --git a/plugin/notify/irc.go b/plugin/notify/irc.go index aff79b7b8..3698a2db4 100644 --- a/plugin/notify/irc.go +++ b/plugin/notify/irc.go @@ -17,18 +17,18 @@ type IRC struct { Channel string `yaml:"channel,omitempty"` Nick string `yaml:"nick,omitempty"` Server string `yaml:"server,omitempty"` - Started bool `yaml:"on_started,omitempty"` - Success bool `yaml:"on_success,omitempty"` - Failure bool `yaml:"on_failure,omitempty"` + Started *bool `yaml:"on_started,omitempty"` + Success *bool `yaml:"on_success,omitempty"` + Failure *bool `yaml:"on_failure,omitempty"` } func (i *IRC) Send(req *model.Request) error { switch { - case req.Commit.Status == "Started" && i.Started: + case req.Commit.Status == "Started" && i.Started != nil && *i.Started == true: return i.sendStarted(req) - case req.Commit.Status == "Success" && i.Success: + case req.Commit.Status == "Success" && i.Success != nil && *i.Success == true: return i.sendSuccess(req) - case req.Commit.Status == "Failure" && i.Failure: + case req.Commit.Status == "Failure" && i.Failure != nil && *i.Failure == true: return i.sendFailure(req) } return nil diff --git a/shared/build/images.go b/shared/build/images.go index 5c09820b1..16ef64a53 100644 --- a/shared/build/images.go +++ b/shared/build/images.go @@ -197,6 +197,7 @@ var builders = map[string]*image{ "go1": {Tag: "bradrydzewski/go:1.0"}, "go1.1": {Tag: "bradrydzewski/go:1.1"}, "go1.2": {Tag: "bradrydzewski/go:1.2"}, + "go1.3": {Tag: "bradrydzewski/go:1.3"}, // Haskell build images "haskell": {Tag: "bradrydzewski/haskell:7.4"},