pull/185/head
Henrique Dias 2017-07-29 19:35:49 +01:00
parent 282efb1f92
commit c431645012
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
2 changed files with 23 additions and 14 deletions

21
.goreleaser.yml Normal file
View File

@ -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

View File

@ -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