Skip to content

Commit

Permalink
add travis and goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
codeskyblue committed Sep 11, 2017
1 parent 2b7fb84 commit 7587b80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64
- "386"
goarm:
- "6"
main: .
ldflags: -s -w -X main.VERSION={{.Version}}
flags: -tags bindata
binary: gohttpserver
archive:
format: tar.gz
Expand Down
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
language: go
go:
- 1.6
- 1.7
env:
global:
- GO15VENDOREXPERIMENT=1
script:
- go test -v
# .travis.yml
after_success:
- go get github.com/jteeuwen/go-bindata/...
- go get github.com/elazarl/go-bindata-assetfs/...
- test -n "$TRAVIS_TAG" && go-bindata-assetfs -tags bindata res/...
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash

0 comments on commit 7587b80

Please sign in to comment.