Add travis CI and goreleaser to compile and publish to GitHub Releases

This commit is contained in:
Adrian Todorov
2017-11-10 23:05:33 +01:00
parent 6438366409
commit 3614590b88
2 changed files with 63 additions and 6 deletions

View File

@@ -1,12 +1,22 @@
language: go
install: true
sudo: required
go:
- 1.8
- 1.9
env:
- "PATH=/home/travis/gopath/bin:$PATH"
- PATH=/home/travis/gopath/bin:$PATH
before_install:
- go get github.com/mitchellh/gox
- sudo apt-get -qq update
- sudo apt-get install -y ruby ruby-dev build-essential rpm
- go get -u github.com/golang/dep/cmd/dep
- go get -u github.com/alecthomas/gometalinter
install:
- dep ensure
before_script:
- gometalinter --install
# - gometalinter --vendor ./...
script:
- go get -t ./...
- gox
- git status
after_success:
- gem install --no-ri --no-rdoc fpm
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash