Change how Travis setups and runs goreleaser #26
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change is based off the goreleaser manual, see https://goreleaser.com/ci/
While trying to make a new release (3.1.2), Travis' deployment part that uses goreleaser stopped working; the
go get github.com/goreleaser/goreleaser
command would always fail. This PR changes the way we setup and run goreleaser, based off the goreleaser manual.The change has been tested by creating a temporary tag (since deleted) to force Travis to run a deployment of this branch. goreleaser was successfully installed and run until it complained that the tag name did not respect semantic versioning. I'm expecting it will just work once I try a proper release with this PR merged.
Before: https://travis-ci.org/sensu/sensu-influxdb-handler/builds/496695795
After: https://travis-ci.org/sensu/sensu-influxdb-handler/builds/496827401
A similar change probably needs to be applied on all our
.travis.yml
files.