UPDATE TRAVIS

pull/160/head
Henrique Dias 2017-07-27 08:12:02 +01:00
parent f4506d06db
commit ae06e99cd1
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
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