Fix poor mistakes with travis
This commit is contained in:
parent
c485a4d507
commit
d775b8f80d
1 changed files with 4 additions and 1 deletions
|
@ -14,9 +14,12 @@ before_install:
|
|||
- go get github.com/mitchellh/gox
|
||||
- go get github.com/tcnksm/ghr
|
||||
|
||||
install:
|
||||
- "[ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ] && gox -ldflags \"-X 'main.buildVersion=${BUILD_VERSION} (${TRAVIS_COMMIT})' -X 'main.buildDate=${DATE}'\" -output \"dist/hoarder_{{.OS}}_{{.Arch}}\" ./cmd/hoarder || false"
|
||||
|
||||
# There are no tests at the moment :(
|
||||
script:
|
||||
- "[ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ] && gox -ldflags \"-X 'main.buildVersion=${BUILD_VERSION} (${TRAVIS_COMMIT})' -X 'main.buildDate=${DATE}'\" -output \"dist/hoarder_{{.OS}}_{{.Arch}}\" ./cmd/hoarder || false"
|
||||
- "true"
|
||||
|
||||
after_success:
|
||||
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && ghr --username tblyler --token "${GITHUB_TOKEN}" --replace --prerelease --debug "${TAG}" dist/ || false'
|
||||
|
|
Loading…
Reference in a new issue