Skip to content

Commit 7587b80

Browse files
committed
add travis and goreleaser
1 parent 2b7fb84 commit 7587b80

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.goreleaser.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@ builds:
99
- goos:
1010
- linux
1111
- darwin
12+
- windows
1213
goarch:
1314
- amd64
1415
- "386"
1516
goarm:
1617
- "6"
1718
main: .
1819
ldflags: -s -w -X main.VERSION={{.Version}}
20+
flags: -tags bindata
1921
binary: gohttpserver
2022
archive:
2123
format: tar.gz

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
language: go
22
go:
3-
- 1.6
43
- 1.7
54
env:
65
global:
76
- GO15VENDOREXPERIMENT=1
87
script:
98
- go test -v
9+
# .travis.yml
10+
after_success:
11+
- go get github.com/jteeuwen/go-bindata/...
12+
- go get github.com/elazarl/go-bindata-assetfs/...
13+
- test -n "$TRAVIS_TAG" && go-bindata-assetfs -tags bindata res/...
14+
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash

0 commit comments

Comments
 (0)