github.com/nkprince007/lab@v0.6.2-0.20171218071646-19d68b56f403/.goreleaser.yml (about) 1 project_name: lab 2 release: 3 github: 4 owner: zaquestion 5 name: lab 6 name_template: '{{.Tag}}' 7 brew: 8 description: "CLI tool for GitLab, like hub" 9 homepage: "https://github.com/zaquestion/lab" 10 github: 11 owner: zaquestion 12 name: homebrew-tap 13 commit_author: 14 name: goreleaserbot 15 email: goreleaser@carlosbecker.com 16 install: bin.install "lab" 17 test: | 18 system "git", "init" 19 %w[haunted house].each { |f| touch testpath/f } 20 system "git", "add", "haunted", "house" 21 system "git", "commit", "-a", "-m", "Initial Commit" 22 system "git", "config", "--local", "--add", "gitlab.host", "http://example.com" 23 system "git", "config", "--local", "--add", "gitlab.user", "test" 24 system "git", "config", "--local", "--add", "gitlab.token", "test" 25 assert_equal "haunted\nhouse", shell_output("#{bin}/lab ls-files").strip 26 builds: 27 - goos: 28 - linux 29 - darwin 30 goarch: 31 - amd64 32 - "386" 33 goarm: 34 - "6" 35 main: . 36 ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} 37 binary: lab 38 archive: 39 format: tar.gz 40 name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ 41 .Arm }}{{ end }}' 42 files: 43 - licence* 44 - LICENCE* 45 - license* 46 - LICENSE* 47 - readme* 48 - README* 49 - changelog* 50 - CHANGELOG* 51 snapshot: 52 name_template: SNAPSHOT-{{ .Commit }} 53 checksum: 54 name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'