Skip to content

Commit

Permalink
feat: adding goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilherme Thomazi Bonicontro committed Jul 24, 2018
1 parent dbb3d47 commit 8741cdf
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 11 deletions.
43 changes: 43 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/n26
binary: n26
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
archive:
name_template: "{{ .ProjectName }}-cli-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format: zip
files:
- none*
checksum:
name_template: "checksums.txt"
release:
github:
owner: guitmz
name: n26
name_template: "{{.Version}}"
changelog:
sort: asc
filters:
exclude:
- "typo"
- "^docs:"
- "^test:"
brew:
github:
owner: guitmz
name: homebrew-tools

homepage: "https://github.com/guitmz/n26"
description: "CLI tool for N26 Bank"
test: |
system "#{bin}/n26", "--version"
19 changes: 8 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
sudo: required

services:
- docker

before_script:
- docker build -t guitmz/n26 .

script:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker push guitmz/n26
language: go
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux

0 comments on commit 8741cdf

Please sign in to comment.