Update instructions for setting version, build commit and date

This commit is contained in:
Marius 2016-07-12 14:46:24 +02:00
parent 3530ffd925
commit 930a63c058
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ before_deploy:
- export GOROOT_BOOTSTRAP=$GOROOT - export GOROOT_BOOTSTRAP=$GOROOT
- go get github.com/laher/goxc - go get github.com/laher/goxc
- goxc -t -bc="linux darwin windows" - goxc -t -bc="linux darwin windows"
- goxc -d=./ -wd=./cmd/tusd -bc="linux darwin windows" -build-ldflags="-X main.VersionName=$TRAVIS_TAG -X main.GitCommit=$TRAVIS_COMMIT -X 'main.BuildDate=$(date --utc)'" - goxc -d=./ -wd=./cmd/tusd -bc="linux darwin windows" -build-ldflags="-X github.com/tus/tusd/cmd/tusd/cli.VersionName=$TRAVIS_TAG -X github.com/tus/tusd/cmd/tusd/cli.GitCommit=$TRAVIS_COMMIT -X 'github.com/tus/tusd/cmd/tusd/cli.BuildDate=$(date --utc)'"
deploy: deploy:
provider: releases provider: releases
api_key: api_key: