From a728d0352ed1a6a2b86c222b4dd76802890e4998 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 27 Jul 2017 08:12:02 +0100 Subject: [PATCH] UPDATE TRAVIS Former-commit-id: ea054af3fd934aebe0c8e2eab55f49bea60b63b2 [formerly e33717ab8dfc9d4bb3f28bda09e4b946afc66772] [formerly 440ef03b98c191821bd41991e57014e121372078 [formerly ae06e99cd161baa8159efa86238c5a302405ce7e]] Former-commit-id: 45b1a7afbb504b58194658ee3c08d17c2ddd1c9d [formerly 30356885794a37ddd1ae497c3cc6bcb2d16c59ea] Former-commit-id: a94890a592a8efc4b8b8824f27e9560c044d5c14 --- .travis.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 75e99318..7c6befb8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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