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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
12
inbucket.go
12
inbucket.go
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user