From 890d8e0202d0e3381bfdf59375e05d4df5c4b0c7 Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Sun, 17 Dec 2017 19:32:05 -0800 Subject: [PATCH] Rename link variables, setup travis tag releases --- .goreleaser.yml | 7 ------- .travis.yml | 3 +++ inbucket.go | 12 ++++++------ 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 96394a0..4d765f7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -45,11 +45,4 @@ checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' dist: dist sign: - cmd: gpg - args: - - --output - - $signature - - --detach-sig - - $artifact - signature: ${artifact}.sig artifacts: none diff --git a/.travis.yml b/.travis.yml index 59308ff..a407e1f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,3 +9,6 @@ go: - 1.9.2 script: go test -race -v ./... + +after_success: + - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash diff --git a/inbucket.go b/inbucket.go index 303e090..5d1c5ac 100644 --- a/inbucket.go +++ b/inbucket.go @@ -23,11 +23,11 @@ import ( ) var ( - // VERSION contains the build version number, populated during linking by goxc - VERSION = "1.2.0-rc2" + // version contains the build version number, populated during linking + version = "undefined" - // BUILDDATE contains the build date, populated during linking by goxc - BUILDDATE = "undefined" + // date contains the build date, populated during linking + date = "undefined" // Command line flags help = flag.Bool("help", false, "Displays this help") @@ -61,8 +61,8 @@ func init() { } func main() { - config.Version = VERSION - config.BuildDate = BUILDDATE + config.Version = version + config.BuildDate = date flag.Parse() if *help {