Update
Former-commit-id: 1740868ca4d3e278a4a80d26d6f20a0afc24262a [formerly a44fe0c8fbad8ebe0822ed9d9da489f9866841c7] [formerly bab3c6ac76f8053d1885537242ff3065d3d56827 [formerly c4316450129074c76412f1b53003b3471f1f0172]] Former-commit-id: 2867b02316377a7cfe0ff7dc448e8cd2a1dd514b [formerly c40ec908fc39642b2776c6e895c9c98427bbdaae] Former-commit-id: 3577f256d7d69889a6056a932ea76a9cf84dc856
This commit is contained in:
parent
f158b79f89
commit
e5f2331fb7
|
@ -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
|
16
.travis.yml
16
.travis.yml
|
@ -14,7 +14,6 @@ env:
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- go get ./...
|
- go get ./...
|
||||||
- go get github.com/mitchellh/gox
|
|
||||||
# Install gometalinter and certain linters
|
# Install gometalinter and certain linters
|
||||||
- go get github.com/alecthomas/gometalinter
|
- go get github.com/alecthomas/gometalinter
|
||||||
- go get github.com/client9/misspell/cmd/misspell
|
- 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 ./...
|
- gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --exclude="rice-box.go" --tests ./...
|
||||||
- go test ./... -timeout 30s
|
- go test ./... -timeout 30s
|
||||||
|
|
||||||
before_deploy:
|
after_success:
|
||||||
- cd cmd/filemanager
|
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
|
||||||
- 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
|
|
||||||
|
|
Loading…
Reference in New Issue