1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00

Rename link variables, setup travis tag releases

This commit is contained in:
James Hillyerd
2017-12-17 19:32:05 -08:00
parent 9f6dee640e
commit 890d8e0202
3 changed files with 9 additions and 13 deletions

View File

@@ -45,11 +45,4 @@ checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
dist: dist dist: dist
sign: sign:
cmd: gpg
args:
- --output
- $signature
- --detach-sig
- $artifact
signature: ${artifact}.sig
artifacts: none artifacts: none

View File

@@ -9,3 +9,6 @@ go:
- 1.9.2 - 1.9.2
script: go test -race -v ./... script: go test -race -v ./...
after_success:
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash

View File

@@ -23,11 +23,11 @@ import (
) )
var ( var (
// VERSION contains the build version number, populated during linking by goxc // version contains the build version number, populated during linking
VERSION = "1.2.0-rc2" version = "undefined"
// BUILDDATE contains the build date, populated during linking by goxc // date contains the build date, populated during linking
BUILDDATE = "undefined" date = "undefined"
// Command line flags // Command line flags
help = flag.Bool("help", false, "Displays this help") help = flag.Bool("help", false, "Displays this help")
@@ -61,8 +61,8 @@ func init() {
} }
func main() { func main() {
config.Version = VERSION config.Version = version
config.BuildDate = BUILDDATE config.BuildDate = date
flag.Parse() flag.Parse()
if *help { if *help {