Skip to content

Commit d0e67e6

Browse files
chore(travis): add publishing
1 parent be9c1b0 commit d0e67e6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.travis.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ go:
33
- 1.x
44
install:
55
- go get github.com/Masterminds/glide
6+
- go get github.com/mitchellh/gox
7+
- go get github.com/tcnksm/ghr
68
- glide install
79
before_script:
8-
- cd cmd/semantic-release/ && go build && cd ../../
10+
- go build ./cmd/semantic-release/
911
script:
1012
- go test -v $(glide novendor)
1113
after_success:
12-
- ./cmd/semantic-release/semantic-release -dry
14+
- ./semantic-release -ghr -vf -dry
15+
- export VERSION=$(cat .version)
16+
- gox -os="linux darwin windows openbsd" -ldflags="-s -w -X main.SRVERSION=$VERSION" -output="bin/{{.Dir}}_v"$VERSION"_{{.OS}}_{{.Arch}}" ./cmd/semantic-release/
17+
- ghr $(cat .ghr) bin/
1318
notifications:
1419
email: false

0 commit comments

Comments
 (0)