From 040bf22047eff56b5d71902e5387ed3a5c0d1620 Mon Sep 17 00:00:00 2001 From: Martin Geno Date: Mon, 12 Jun 2017 23:02:03 +0200 Subject: [PATCH] add notify xmpp config --- circle.yml | 9 +++++---- lib/config.go | 13 +++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/circle.yml b/circle.yml index 10c145e..d35345a 100644 --- a/circle.yml +++ b/circle.yml @@ -1,7 +1,3 @@ -notify: - webhooks: - - url: https://hook2xmpp.pub.warehost.de/circleci - machine: environment: GOROOT: "" @@ -33,3 +29,8 @@ deployment: branch: master commands: - ./deploy.sh $HOST_FOR_STAGING $PORT_FOR_STAGING + +notify: + webhooks: + - url: https://coveralls.io/webhook?repo_token=$COVERALLS_REPO_TOKEN + - url: https://hook2xmpp.pub.warehost.de/circleci diff --git a/lib/config.go b/lib/config.go index 21c6e5f..626d84c 100644 --- a/lib/config.go +++ b/lib/config.go @@ -12,6 +12,19 @@ type Config struct { Bind string `toml:"bind"` Interactive bool `toml:"interactive"` } `toml:"api"` + Notify struct { + XMPP struct { + Host string `toml:"host"` + Username string `toml:"username"` + Password string `toml:"password"` + Debug bool `toml:"debug"` + NoTLS bool `toml:"no_tls"` + Session bool `toml:"session"` + Status string `toml:"status"` + StatusMessage string `toml:"status_message"` + StartupNotify string `toml:"startup_notify"` + } `toml:"xmpp"` + } `toml:"notify"` Database struct { Type string `toml:"type"` Connect string `toml:"connect"`