From ff62472b5eb9df6ec00829554c6a1762343ae2e1 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Mon, 20 Jun 2022 12:03:03 +0200 Subject: [PATCH] chore: add goreleaser --- .gitignore | 1 + .goreleaser.yml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.gitignore b/.gitignore index a2624ff..e4bcae9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .idea/ mocktail +dist/ diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..fb7d7dc --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,59 @@ +project_name: mocktail + +builds: + - binary: mocktail + goos: + - windows + - darwin + - linux + - freebsd + - openbsd + goarch: + - amd64 + - 386 + - arm + - arm64 + goarm: + - 7 + + ignore: + - goos: darwin + goarch: 386 + - goos: openbsd + goarch: arm + +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^doc:' + - '^chore:' + - '^chore(deps):' + - '^test:' + - '^tests:' + +archives: + - id: mocktail + name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm}}v{{ .Arm }}{{ end }}' + format: tar.gz + format_overrides: + - goos: windows + format: zip + files: + - LICENSE + +brews: + - tap: + owner: traefik + name: homebrew-tap + commit_author: + name: traefiker + email: 30906710+traefiker@users.noreply.github.com + folder: Formula + homepage: https://github.com/traefik/mocktail + description: | + Naive code generator that create mock implementation using testify.mock. + test: | + system "echo 0" +