github.com/ianfoo/lab@v0.9.5-0.20180123060006-5ed79f2ccfc7/.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'
    55  changelog:
    56    filters:
    57      # commit messages matching the regexp listed here will be removed from
    58      # the changelog
    59      # Default is empty
    60      exclude:
    61        - '^\(docs\)'
    62        - '^\(ci\)'
    63        - '^\(coverage\)'
    64        - '^\(tests?'
    65        - '^Merge pull request'