Former-commit-id: 1740868ca4d3e278a4a80d26d6f20a0afc24262a [formerly a44fe0c8fbad8ebe0822ed9d9da489f9866841c7] [formerly bab3c6ac76f8053d1885537242ff3065d3d56827 [formerly c431645012]]
Former-commit-id: 2867b02316377a7cfe0ff7dc448e8cd2a1dd514b [formerly c40ec908fc39642b2776c6e895c9c98427bbdaae]
Former-commit-id: 3577f256d7d69889a6056a932ea76a9cf84dc856
pull/726/head
Henrique Dias 2017-07-29 19:35:49 +01:00
parent f158b79f89
commit e5f2331fb7
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