Skip to content

Commit

Permalink
Set up auto deploy and some minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ckaznocha committed Aug 11, 2015
1 parent 9f2354e commit cac8a36
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
22 changes: 17 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
language: go
install:
- go get -d ./...
- go get github.com/golang/lint/golint
env:
- GIMME_OS=darwin GIMME_ARCH=amd64
- GIMME_OS=linux GIMME_ARCH=amd64
- GIMME_OS=windows GIMME_ARCH=amd64
script:
- golint ./...
- go test -v ./...
- go build -v .
before_deploy:
- zip protoc-gen-lint_${GIMME_OS}_${GIMME_ARCH}.zip protoc-gen-lint* README.md LICENSE
deploy:
provider: releases
api_key:
secure: rKiP2lFonH6iEx7HEK8eFF77pct2P3KkZ7+JFYMxxoJRWWA2x7/1h/Nd8JpA/TSiZhjmzscIHMUr7vblUxXiGFDCG4Rra1beLoJFw+YFdjirppol5dSZyS485D0F5CDAe1QE7uVaJ/VjU6XDf3X2gPENw3jNDNGfde4JLiPITa+Xc2ThMMjBQnd8LyFAh+svgNdAQo77+EJR6CqVW9w3s/j4Do5QGt+bBjw4SoGDmOyLIxEjp8O/JbaUN6sYLAvonKrFDBF1DARr3VcZt7uP9kCtTinxxGA6I9BCR4ia0Iz4NUCrUcZiElzasrDE6WPvD2J/fni/qA5jZnMp75MqPEi/ypC5b1Rg+Qtq4GZnzD5xmvh+wFMdedhgVAUccpxDcs5XyKKTulEIxoKwoziE7BZCZBW5gmyu4n+WS2rBOT0bZBhCbs3yFJQ9b97w/dNDMtr86kC1iykYmW4Djth43caZSO7h1qUoKQ7GghWUkXnf9y6f2NapSF2xx/kXkCfb4uG2LJUtJpm4JDPjz2PwZ4bgISddlgwKzpzjec8vaS1xd3nS+NLY5jrFZKWcONXRDfCeamSI9537tM4uHzdlr7ZcXyvndlPqr226UUOnBHRu5QQFCfblQE1iKegF3fJZR6r4FJO62buZQsMC1maUtKwYmS514dezA85muPtcs5M=
file: protoc-gen-lint_${GIMME_OS}_${GIMME_ARCH}.zip
file_glob: true
skip_cleanup: true
on:
repo: ckaznocha/protoc-gen-lint
tags: true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ go get github.com/ckaznocha/protoc-gen-lint
### Download
Download the latest release for your operating system
[here](https://github.com/ckaznocha/protoc-gen-lint/releases/latest) then
ensure it's available in your PATH.
rename it to `protoc-gen-lint` (or protoc-gen-lint.exe` for windows) and ensure
it's available in your PATH.

## Usage
```
Expand All @@ -42,7 +43,6 @@ protoc --lint_out=. *.proto
## TODO
* Write more tests
* Find out about any common protocol buffer smells to check for from the community
* Automate GitHub releases

## Contributing
See the `CONTRIBUTING` file.
Expand Down

0 comments on commit cac8a36

Please sign in to comment.