Skip to content

Commit

Permalink
travis + goreleaser
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmet Alp Balkan <[email protected]>
  • Loading branch information
ahmetb committed Feb 14, 2019
1 parent b02fac3 commit b783c07
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ refdocs

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# goreleaser output
dist
24 changes: 24 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
builds:
- env:
- CGO_ENABLED=0
# travis ci currently sets GOPATH even with go1.11.
# force-setting GO111MODULE=on to use vgo
- GO111MODULE=on
goos:
- linux
- darwin
goarch:
- amd64
archive:
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
- template/**
- example-config.json
checksum:
name_template: "checksums.txt"
changelog:
skip: true
release:
# releases are uploaded to github by .travis.yml
disable: true
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
language: go
go:
- 1.11.x
install:
- echo noop
before_script:
# travis ci currently sets GOPATH even with go1.11.
# force-setting GO111MODULE=on to use vgo
- env GO111MODULE=on go mod download
script:
# travis ci currently sets GOPATH even with go1.11.
# force-setting GO111MODULE=on to use vgo
- env GO111MODULE=on go build -v -o /dev/null
deploy:
# use goreleaser to prepare dist/
- provider: script
skip_cleanup: true
on:
tags: true
script: curl -sL https://git.io/goreleaser | bash
# use github release feature to upload dist/
- provider: releases
skip_cleanup: true
on:
tags: true
file_glob: true
file:
- dist/*.tar.gz
- dist/*.zip
- dist/checksums.txt
api_key:
secure: r1GMgbVDnZTUcny/PbIATW9dXGOTpm2U9iEGaWvpprMO2AGo7ju7SWEJWtjcap3pc0YasyR2/eon9LC0scWY0Xlpeb+g0pRCQ39FABk1Vo3DpmIPRUCFFkaescWmrWDj3ImzjJgZjCewwK6Fo8s8ngnqIlZnE1Hq6ls2xDp6jNVf+Pn7LyqxkK4axFFSPQM9zFX3N1PVUH5RT03bIJfojJZguqnhNfyTvKvHJidoeWU/Ie+fXc4AdPHyP85xrmGHYl68O0HziU6JCLXira8r1FjUgVeYFYC5nnNuylszO6JWqWh1nXYDxs5FGPnZd9N8bEi/2ahiqms8eV7S+/DGzhSoEdHikcBxTgJpZP2VOmvRSITyv3RleJzCeMULTGFQodoxRgA/Q8qZySvInNjstiBjV2Pyucrnn990XQbN8rIV4RmNggJvbAwJNCGjCwS2eB42EKNCODTuzHPbIV0ap4EjvfBBo0cZ2J9M2Q6VzdpNErdntpM1hZl9yymv3MNN4hOiLQKkofoo/QI3cffB8Y0PBPAL8Cs9Mx1bbx+Dr8iitTHBUAt4a5DHFen4MS8znrZ+Cr4kLDD9QPJ8G0oh4tDKq8CJ73Gt+xqkLZEuka0W1awz9essqE7MH20kRJbKa5woTIs0v9njHMpbeqd7KrNV+1e5F5aPRQyiCzaom7c=

0 comments on commit b783c07

Please sign in to comment.