Skip to content

Commit

Permalink
chore(travis): add publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Mar 8, 2017
1 parent be9c1b0 commit d0e67e6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Expand Up @@ -3,12 +3,17 @@ go:
- 1.x
install:
- go get github.com/Masterminds/glide
- go get github.com/mitchellh/gox
- go get github.com/tcnksm/ghr
- glide install
before_script:
- cd cmd/semantic-release/ && go build && cd ../../
- go build ./cmd/semantic-release/
script:
- go test -v $(glide novendor)
after_success:
- ./cmd/semantic-release/semantic-release -dry
- ./semantic-release -ghr -vf -dry
- export VERSION=$(cat .version)
- gox -os="linux darwin windows openbsd" -ldflags="-s -w -X main.SRVERSION=$VERSION" -output="bin/{{.Dir}}_v"$VERSION"_{{.OS}}_{{.Arch}}" ./cmd/semantic-release/
- ghr $(cat .ghr) bin/
notifications:
email: false

0 comments on commit d0e67e6

Please sign in to comment.