From ceeabd6cbcec726e741949d4354eadedf45c378a Mon Sep 17 00:00:00 2001 From: Jakob Schrettenbrunner Date: Tue, 27 Jun 2017 10:03:17 +0200 Subject: [PATCH] add cross platform build to travis auto deploy on releases with travis --- .gitignore | 3 +++ .travis.yml | 28 +++++++++++++++++++--------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 18d708c..9f03281 100644 --- a/.gitignore +++ b/.gitignore @@ -25,5 +25,8 @@ # Ignore Vagrant stuff /.vagrant +# Builds by gox +/build + # Keep all gitkeep files (This needs to stay at the bottom) !.gitkeep diff --git a/.travis.yml b/.travis.yml index 8e5fe9e..fe4d58e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,17 +1,27 @@ language: go go: - - 1.9beta1 - - master +- 1.8.x +- master install: - - go get -u github.com/golang/dep/cmd/dep - - go get github.com/haya14busa/goverage - - go get github.com/schrej/godacov - - dep ensure +- go get github.com/golang/dep/cmd/dep +- go get github.com/mitchellh/gox +- go get github.com/haya14busa/goverage +- go get github.com/schrej/godacov +- dep ensure script: - - go build -o wings - - goverage -v -coverprofile=coverage.out ./... - - godacov -t $CODACY_TOKEN -r ./coverage.out -c $TRAVIS_COMMIT +- gox -output "build/{{.Dir}}_{{.OS}}_{{.Arch}}" +- goverage -v -coverprofile=coverage.out ./... +- godacov -t $CODACY_TOKEN -r ./coverage.out -c $TRAVIS_COMMIT +deploy: + provider: releases + api_key: + secure: HQ8AvnSsOW2aDUKv25sU83SswK9rReGeFi68SotLGPdWyFBWJbp/JEHhw9swSqvhLPykx5QqLnRPG4nomOp2i5dVTXgM/7C3wQ2ULymkJDZqDJEAxjm1IuNsjXgcFqp0zcNXL3g0moaorHS2XZpzbgaewlCyYoEb+3SZUGzOCPIjSFvoIBaAYx6kRn+pyWo1I0mQChno2i7SGvAoZwh/hZIO6L5FZe5PcpBs/SxkZ+/shsGMk7CIyNMhG6CQTE1tlr+ZenluXjtliZfc4XwkHG/9MICNl8ihUrnN6YfdvJZXLQvolZQ0QJ5Eyb04jQd1yzKR1hcLx2S42IAWxaWTy5QxSN8QyG5wBRNg567ib5FEqY4M1nyQnWQbUbaiYloYBp14aR1L9DQw8+xmXnlgnTUPq1w+cOpQLeY/RENCalgHe7NoI3lClC2b7/c1j+O7RA68yYUFUod0y7ZXcCwsJkbRk7xgyDEAGs+rq8wLknj6f8y8cfNm179lRARwblnmo9uA43Tlee8DBSziSvJy/mYMzdIQeb+PHuznXjr4fze7x+zvronkiD/JH8MjJl3SWaE7DGtc5jz4+aRxU3rMbHwToEOY6u5pIsvz5PRFYWBvKX2+VoxmdR+m1qhAxsg0wtbA0CTnqgHNGMIFDWVTDQSy8LvJt+usUn1RtrYyyiI= + file_glob: true + file: build/* + on: + trags: true + branch: master