Skip to content

Commit b783c07

Browse files
committed
travis + goreleaser
Signed-off-by: Ahmet Alp Balkan <[email protected]>
1 parent b02fac3 commit b783c07

File tree

3 files changed

+59
-0
lines changed

3 files changed

+59
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ refdocs
1111

1212
# Output of the go coverage tool, specifically when used with LiteIDE
1313
*.out
14+
15+
# goreleaser output
16+
dist

.goreleaser.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
builds:
2+
- env:
3+
- CGO_ENABLED=0
4+
# travis ci currently sets GOPATH even with go1.11.
5+
# force-setting GO111MODULE=on to use vgo
6+
- GO111MODULE=on
7+
goos:
8+
- linux
9+
- darwin
10+
goarch:
11+
- amd64
12+
archive:
13+
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
14+
files:
15+
- LICENSE
16+
- template/**
17+
- example-config.json
18+
checksum:
19+
name_template: "checksums.txt"
20+
changelog:
21+
skip: true
22+
release:
23+
# releases are uploaded to github by .travis.yml
24+
disable: true

.travis.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
language: go
2+
go:
3+
- 1.11.x
4+
install:
5+
- echo noop
6+
before_script:
7+
# travis ci currently sets GOPATH even with go1.11.
8+
# force-setting GO111MODULE=on to use vgo
9+
- env GO111MODULE=on go mod download
10+
script:
11+
# travis ci currently sets GOPATH even with go1.11.
12+
# force-setting GO111MODULE=on to use vgo
13+
- env GO111MODULE=on go build -v -o /dev/null
14+
deploy:
15+
# use goreleaser to prepare dist/
16+
- provider: script
17+
skip_cleanup: true
18+
on:
19+
tags: true
20+
script: curl -sL https://git.io/goreleaser | bash
21+
# use github release feature to upload dist/
22+
- provider: releases
23+
skip_cleanup: true
24+
on:
25+
tags: true
26+
file_glob: true
27+
file:
28+
- dist/*.tar.gz
29+
- dist/*.zip
30+
- dist/checksums.txt
31+
api_key:
32+
secure: r1GMgbVDnZTUcny/PbIATW9dXGOTpm2U9iEGaWvpprMO2AGo7ju7SWEJWtjcap3pc0YasyR2/eon9LC0scWY0Xlpeb+g0pRCQ39FABk1Vo3DpmIPRUCFFkaescWmrWDj3ImzjJgZjCewwK6Fo8s8ngnqIlZnE1Hq6ls2xDp6jNVf+Pn7LyqxkK4axFFSPQM9zFX3N1PVUH5RT03bIJfojJZguqnhNfyTvKvHJidoeWU/Ie+fXc4AdPHyP85xrmGHYl68O0HziU6JCLXira8r1FjUgVeYFYC5nnNuylszO6JWqWh1nXYDxs5FGPnZd9N8bEi/2ahiqms8eV7S+/DGzhSoEdHikcBxTgJpZP2VOmvRSITyv3RleJzCeMULTGFQodoxRgA/Q8qZySvInNjstiBjV2Pyucrnn990XQbN8rIV4RmNggJvbAwJNCGjCwS2eB42EKNCODTuzHPbIV0ap4EjvfBBo0cZ2J9M2Q6VzdpNErdntpM1hZl9yymv3MNN4hOiLQKkofoo/QI3cffB8Y0PBPAL8Cs9Mx1bbx+Dr8iitTHBUAt4a5DHFen4MS8znrZ+Cr4kLDD9QPJ8G0oh4tDKq8CJ73Gt+xqkLZEuka0W1awz9essqE7MH20kRJbKa5woTIs0v9njHMpbeqd7KrNV+1e5F5aPRQyiCzaom7c=

0 commit comments

Comments
 (0)