From cac8a3614c3449047fc358093eccdc5b22233449 Mon Sep 17 00:00:00 2001 From: Clifton Kaznocha Date: Sun, 9 Aug 2015 23:58:48 -0400 Subject: [PATCH] Set up auto deploy and some minor refactoring --- .travis.yml | 22 +++++++++++++++++----- README.md | 4 ++-- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6e2d461..4b1cd90 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index 96da3f8..0b728f5 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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.