From 8741cdf82c6c9794aa8c95a350d32112da7e9eb1 Mon Sep 17 00:00:00 2001 From: Guilherme Thomazi Bonicontro Date: Tue, 24 Jul 2018 16:33:29 +0200 Subject: [PATCH] feat: adding goreleaser --- .goreleaser.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ .travis.yml | 19 ++++++++----------- 2 files changed, 51 insertions(+), 11 deletions(-) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..665c281 --- /dev/null +++ b/.goreleaser.yml @@ -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" + diff --git a/.travis.yml b/.travis.yml index f8e25bb..cf96052 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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