-
Notifications
You must be signed in to change notification settings - Fork 144
/
.goreleaser.yml
109 lines (93 loc) · 2.47 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
project_name: truss
release:
github:
owner: metaverse
name: truss
name_template: '{{.Tag}}'
# .goreleaser.yml
brews:
-
# Name template of the recipe
# Default to project name
name: truss
# GitHub/GitLab repository to push the formula to
# Gitea is not supported yet, but the support coming
tap:
owner: metaverse
name: homebrew-tap
commit_author:
name: goreleaserbot
email: [email protected]
# Caveats for the user of your binary.
# Default is empty.
caveats: "To leverage truss's annotations you'll need to clone truss into your $(go env GOPATH)"
homepage: "https://github.com/metaverse/truss"
description: "Truss helps you build go-kit microservices without having to worry about writing or maintaining boilerplate code"
# Packages your package depends on.
dependencies:
- name: protobuf
- name: protoc-gen-gogo
- name: protoc-gen-gogofaster
# So you can `brew test` your formula.
# Default is empty.
test: |
system "#{bin}/truss --version"
protofile = testpath/"proto3.proto"
protofile.write <<~EOS
syntax = "proto3";
package proto3;
service Echo {
rpc Echo(Request) returns (Request) { }
}
message Request {
string text = 1;
}
EOS
system "#{bin}/truss", "proto3.proto"
assert_predicate testpath/"proto3.pb.go", :exist?
assert_predicate testpath/echo-service, :exist?
refute_predicate (testpath/"proto3.pb.go").size, :zero?
# Custom install script for brew.
# Default is 'bin.install "program"'.
install: |
bin.install "truss"
builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64
- "386"
env:
- CGO_ENABLED=0
main: cmd/truss/main.go
ldflags: -s -w -X main.version={{.Version}} -X main.date={{.CommitDate}}
binary: truss
archives:
-
format: tar.gz
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
wrap_in_directory: true
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
# commit messages matching the regexp listed here will be removed from
# the changelog
# Default is empty
exclude:
- '^\(docs\)'
- '^\(actions\)'
- '^\(ci\)'
- '^\(coverage\)'
- '^\(tests?'
- '^Merge pull request'