mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-22 03:20:41 +08:00
Add Travus and Goreleaser
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
build:
|
||||||
|
main: cmd/webdav/main.go
|
||||||
|
binary: webdav
|
||||||
|
goos:
|
||||||
|
- darwin
|
||||||
|
- linux
|
||||||
|
- windows
|
||||||
|
- freebsd
|
||||||
|
- netbsd
|
||||||
|
- openbsd
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
- 386
|
||||||
|
- arm
|
||||||
|
- arm64
|
||||||
|
ignore:
|
||||||
|
- goos: openbsd
|
||||||
|
goarch: arm
|
||||||
|
goarm: 6
|
||||||
|
- goos: freebsd
|
||||||
|
goarch: arm
|
||||||
|
goarm: 6
|
||||||
|
|
||||||
|
archive:
|
||||||
|
name_template: "{{.Os}}-{{.Arch}}-{{ .ProjectName }}"
|
||||||
|
format: tar.gz
|
||||||
|
format_overrides:
|
||||||
|
- goos: windows
|
||||||
|
format: zip
|
||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
language: go
|
||||||
|
|
||||||
|
go: 1.8.3
|
||||||
|
|
||||||
|
env:
|
||||||
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
||||||
|
|
||||||
|
install:
|
||||||
|
- go get ./...
|
||||||
|
# Install gometalinter and certain linters
|
||||||
|
- go get github.com/alecthomas/gometalinter
|
||||||
|
- go get github.com/client9/misspell/cmd/misspell
|
||||||
|
- go get github.com/gordonklaus/ineffassign
|
||||||
|
- go get golang.org/x/tools/cmd/goimports
|
||||||
|
- go get github.com/tsenart/deadcode
|
||||||
|
|
||||||
|
script:
|
||||||
|
- gometalinter --disable-all -E vet -E gofmt -E misspell -E ineffassign -E goimports -E deadcode --tests ./...
|
||||||
|
- go test ./... -timeout 30s
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
|
||||||
@@ -1 +1,5 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user