UPDATE TRAVIS
parent
f4506d06db
commit
ae06e99cd1
22
.travis.yml
22
.travis.yml
|
@ -20,17 +20,21 @@ install:
|
||||||
script:
|
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:
|
||||||
- cd cmd/filemanager
|
- cd cmd/filemanager
|
||||||
- mkdir dist
|
- mkdir dist
|
||||||
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
|
- gox -output "dist/{{.OS}}-{{.Arch}}-{{.Dir}}"
|
||||||
- ls dist/
|
|
||||||
- ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
- provider: releases
|
||||||
api_key: $GITHUB_TOKEN
|
api_key: $GITHUB_TOKEN
|
||||||
file_glob: true
|
file_glob: true
|
||||||
file: dist/*
|
file: dist/*
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
|
- provider: script
|
||||||
|
script: ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/
|
||||||
|
on:
|
||||||
|
branch: master
|
||||||
|
|
Loading…
Reference in New Issue