Skip to content

Commit

Permalink
[build] Only build from latest.
Browse files Browse the repository at this point in the history
  • Loading branch information
elithrar committed Jan 28, 2017
1 parent 5b0760b commit 0c4bbe2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Expand Up @@ -3,6 +3,7 @@ sudo: false
matrix:
include:
- go: 1.x
env: LATEST=true
- go: 1.5
- go: 1.6
- go: 1.7
Expand All @@ -21,7 +22,8 @@ script:
- diff -u <(echo -n) <(gofmt -d .)
- go vet $(go list ./... | grep -v /vendor/)
- go test -v -race ./...
- gox -os="linux darwin windows" -arch="amd64" -output="logshare.{{.OS}}.{{.Arch}}" -verbose ./...
# Only build binaries from the latest Go release.
- if [ "${LATEST}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64" -output="logshare.{{.OS}}.{{.Arch}}" -verbose ./...; fi

deploy:
provider: releases
Expand All @@ -35,3 +37,4 @@ deploy:
on:
repo: cloudflare/logshare
tags: true
condition: $LATEST = true

0 comments on commit 0c4bbe2

Please sign in to comment.