Skip to content

Commit

Permalink
Merge pull request #102 from robdefeo/master
Browse files Browse the repository at this point in the history
build only tag
  • Loading branch information
robdefeo committed May 1, 2019
2 parents f33b86d + 474b9de commit 4da7671
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# Make sure to check the documentation at http://goreleaser.com
env:
- GO111MODULE=on
before:
hooks:
- go mod download
- go install github.com/golang/mock/mockgen
- go generate ./...
builds:
- id: mailchain-darwin-amd64
ldflags: -s -w -X github.com/mailchain/mailchain/pkg/version.Version={{.Version}} -X github.com/mailchain/mailchain/pkg/version.BuildDate={{.Date}} -X github.com/mailchain/mailchain/pkg/version.CommitHash={{ .ShortCommit }}
Expand Down
29 changes: 20 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
language: go
go_import_path: github.com/mailchain/mailchain
go:
- 1.11.x
- 1.12.x
matrix:
include:
# "1.x" always refers to the latest Go version, inc. the patch release.
# e.g. "1.x" is 1.11 until 1.11.1 is available.
- go: 1.x
env:
- LATEST=true
- GO111MODULE=on
- go: 1.11.x
- go: 1.12.x
- go: tip
allow_failures:
- go: tip
env:
- GO111MODULE=on
dist: xenial
before_install:
- go get github.com/mattn/goveralls
install: true
install:
- go get -v ./...
script:
- go get github.com/mattn/goveralls
- go test -covermode=count -coverprofile=coverage.out ./...
- $GOPATH/bin/goveralls -coverprofile=coverage.out -service=travis-ci
- git diff
deploy:
- provider: script
skip_cleanup: true
script: git diff && docker run --rm --privileged -v $TRAVIS_BUILD_DIR:/go/src/github.com/mailchain/mailchain -v /var/run/docker.sock:/var/run/docker.sock -w /go/src/github.com/mailchain/mailchain mailchain/goreleaser-xcgo goreleaser --rm-dist
script: docker run --rm --privileged -v $TRAVIS_BUILD_DIR:/go/src/github.com/mailchain/mailchain -v /var/run/docker.sock:/var/run/docker.sock -w /go/src/github.com/mailchain/mailchain mailchain/goreleaser-xcgo goreleaser --rm-dist
on:
tags: true
repo: mailchain/mailchain
branch: master
condition: $LATEST = true

0 comments on commit 4da7671

Please sign in to comment.