mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
f271b18d97
Former-commit-id: f8ab226e6a2c6132038abf4ae4f1d36def9bbeaf [formerly e7cbe888773009190ac7f37e6e3793a098f8ce83] [formerly 3fee80d398724ad66ab9eef0276581b21e06ce7b [formerly 155b5c3c02
]]
Former-commit-id: 693d10cfd6a6e7ad4e4b0b1eb5fedc2a5ffcd6b4 [formerly c63af660b310eb19349d686475e4c503303420ee]
Former-commit-id: ca8f8aff411eaad6271885e9d84ab3bfd42dcde8
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
language: go
|
|
|
|
go:
|
|
- tip
|
|
|
|
env:
|
|
- "PATH=/home/travis/gopath/bin:$PATH"
|
|
|
|
install:
|
|
- go get ./...
|
|
- go get github.com/mitchellh/gox
|
|
- go get github.com/tcnksm/ghr
|
|
# 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 --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
|
|
- provider: script
|
|
skip_cleanup: true
|
|
script: ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/
|
|
on:
|
|
branch: master
|