forked from stripe/stripe-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
goreleaser.yml
84 lines (76 loc) · 2.14 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
project_name: stripe-mock
before:
hooks:
- go get -u honnef.co/go/tools/cmd/staticcheck@latest
- go install github.com/go-bindata/go-bindata/...@latest
- go generate -mod=readonly
- go mod vendor
builds:
- binary: stripe-mock
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
- linux
goarch:
- amd64
snapshot:
name_template: "{{ .Tag }}-next"
archives:
- format_overrides:
- goos: windows
format: zip
brews:
- tap:
owner: stripe
name: homebrew-stripe-mock
homepage: "https://github.com/stripe/stripe-mock"
description: "stripe-mock is a mock HTTP server that responds like the real Stripe API. It can be used instead of Stripe's testmode to make test suites integrating with Stripe faster and less brittle."
commit_author:
name: stripe-ci
email: [email protected]
plist: |
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
<key>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/stripe-mock</string>
<string>-http-port</string>
<string>12111</string>
<string>-https-port</string>
<string>12112</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>WorkingDirectory</key>
<string>#{var}</string>
<key>StandardErrorPath</key>
<string>#{var}/log/stripe-mock.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/stripe-mock.log</string>
</dict>
</plist>
nfpms:
- vendor: Stripe
homepage: https://stripe.com
maintainer: Stripe <[email protected]>
license: MIT
formats:
- deb
- rpm
dockers:
- binaries:
- stripe-mock
image_templates:
- "stripe/stripe-mock:latest"
- "stripe/stripe-mock:{{ .Tag }}"