UPDATE TRAVIS

Former-commit-id: ea054af3fd934aebe0c8e2eab55f49bea60b63b2 [formerly e33717ab8dfc9d4bb3f28bda09e4b946afc66772] [formerly 440ef03b98c191821bd41991e57014e121372078 [formerly ae06e99cd1]]
Former-commit-id: 45b1a7afbb504b58194658ee3c08d17c2ddd1c9d [formerly 30356885794a37ddd1ae497c3cc6bcb2d16c59ea]
Former-commit-id: a94890a592a8efc4b8b8824f27e9560c044d5c14
pull/726/head
Henrique Dias 2017-07-27 08:12:02 +01:00
parent 2096d7d048
commit a728d0352e
1 changed files with 13 additions and 9 deletions

View File

@ -20,17 +20,21 @@ install:
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}}"
- ls dist/
- ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: dist/*
skip_cleanup: true
on:
tags: true
- provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: dist/*
skip_cleanup: true
on:
tags: true
- provider: script
script: ghr --username hacdias --token $GITHUB_TOKEN --replace --prerelease --debug latest dist/
on:
branch: master