Skip to content

Commit 0c4bbe2

Browse files
committed
[build] Only build from latest.
1 parent 5b0760b commit 0c4bbe2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ sudo: false
33
matrix:
44
include:
55
- go: 1.x
6+
env: LATEST=true
67
- go: 1.5
78
- go: 1.6
89
- go: 1.7
@@ -21,7 +22,8 @@ script:
2122
- diff -u <(echo -n) <(gofmt -d .)
2223
- go vet $(go list ./... | grep -v /vendor/)
2324
- go test -v -race ./...
24-
- 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
2527

2628
deploy:
2729
provider: releases
@@ -35,3 +37,4 @@ deploy:
3537
on:
3638
repo: cloudflare/logshare
3739
tags: true
40+
condition: $LATEST = true

0 commit comments

Comments
 (0)