Skip to content

Commit

Permalink
add cross compilation and deploy to github release
Browse files Browse the repository at this point in the history
  • Loading branch information
alastairruhm committed Nov 23, 2016
1 parent 5409246 commit 2a99478
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,23 @@ go:
- 1.7

install:
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
- go get github.com/mattn/goveralls

script:
- go test -v -covermode=count -coverprofile=coverage.out
- goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN

after_success:
- gox -os "linux darwin" -arch "386 amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}"

deploy:
provider: script
script: ghr --username alastairruhm --token $GITHUB_TOKEN --replace --debug $(git tag -l --contains HEAD) dist/
on:
tags: true

notifications:
slack: ruhm-pacino:vcSqblVd1vSDgaOzWLNbThfS

Expand Down

0 comments on commit 2a99478

Please sign in to comment.