From e5f2331fb71360f93eca7c6073e6d2ec9f800a5d Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 29 Jul 2017 19:35:49 +0100 Subject: [PATCH] Update Former-commit-id: 1740868ca4d3e278a4a80d26d6f20a0afc24262a [formerly a44fe0c8fbad8ebe0822ed9d9da489f9866841c7] [formerly bab3c6ac76f8053d1885537242ff3065d3d56827 [formerly c4316450129074c76412f1b53003b3471f1f0172]] Former-commit-id: 2867b02316377a7cfe0ff7dc448e8cd2a1dd514b [formerly c40ec908fc39642b2776c6e895c9c98427bbdaae] Former-commit-id: 3577f256d7d69889a6056a932ea76a9cf84dc856 --- .goreleaser.yml | 21 +++++++++++++++++++++ .travis.yml | 16 ++-------------- 2 files changed, 23 insertions(+), 14 deletions(-) create mode 100644 .goreleaser.yml diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 00000000..993ad77d --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,21 @@ +build: + main: cmd/filemanager/main.go + binary: filemanager + goos: + - darwin + - linux + - windows + - freebsd + - netbsd + - openbsd + goarch: + - amd64 + - 386 + - arm + - arm64 +archive: + name_template: "{{.Os}}-{{.Arch}}-{{ .ProjectName }}" + format: tar.gz + format_overrides: + - goos: windows + format: zip diff --git a/.travis.yml b/.travis.yml index a53bc67a..10d5413c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,6 @@ env: install: - go get ./... - - go get github.com/mitchellh/gox # Install gometalinter and certain linters - go get github.com/alecthomas/gometalinter - go get github.com/client9/misspell/cmd/misspell @@ -26,16 +25,5 @@ script: - gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --exclude="rice-box.go" --tests ./... - go test ./... -timeout 30s -before_deploy: - - cd cmd/filemanager - - mkdir dist - - gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}" - -deploy: - provider: releases - api_key: $GITHUB_TOKEN - file_glob: true - file: dist/* - skip_cleanup: true - on: - tags: true +after_success: + - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash