Add travis configuration for automated builds and update makefile

This commit is contained in:
Stefan Martinov 2017-07-07 14:43:48 +02:00
parent fa8de159a8
commit 001d015382
2 changed files with 16 additions and 1 deletions

15
.travis.yml Normal file
View File

@ -0,0 +1,15 @@
language: go
go:
- 1.8.x
cache:
directories:
- ./vendor
script:
- make test
after_success:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
make release;
fi;

View File

@ -7,7 +7,7 @@ demo:
install:
GOBIN=/usr/local/bin go install cmd/gotsrpc/gotsrpc.go
build: goreleaser glide
release: goreleaser glide
goreleaser --rm-dist
goreleaser: