We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b0760b commit 0c4bbe2Copy full SHA for 0c4bbe2
1 file changed
.travis.yml
@@ -3,6 +3,7 @@ sudo: false
3
matrix:
4
include:
5
- go: 1.x
6
+ env: LATEST=true
7
- go: 1.5
8
- go: 1.6
9
- go: 1.7
@@ -21,7 +22,8 @@ script:
21
22
- diff -u <(echo -n) <(gofmt -d .)
23
- go vet $(go list ./... | grep -v /vendor/)
24
- go test -v -race ./...
- - gox -os="linux darwin windows" -arch="amd64" -output="logshare.{{.OS}}.{{.Arch}}" -verbose ./...
25
+ # Only build binaries from the latest Go release.
26
+ - if [ "${LATEST}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64" -output="logshare.{{.OS}}.{{.Arch}}" -verbose ./...; fi
27
28
deploy:
29
provider: releases
@@ -35,3 +37,4 @@ deploy:
35
37
on:
36
38
repo: cloudflare/logshare
39
tags: true
40
+ condition: $LATEST = true
0 commit comments