Permalink
Browse files

initial files

  • Loading branch information...
peter-edge committed Nov 13, 2015
0 parents commit 9a14f861e8b1242b94e9cfc7b1f0c7be4682fdc4
Showing with 90 additions and 0 deletions.
  1. +21 −0 LICENSE
  2. +57 −0 Makefile
  3. +3 −0 README.md
  4. +8 −0 circle.yml
  5. +1 −0 protoeasy.go
21 LICENSE
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015 Peter Edge
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,57 @@
all: test
deps:
go get -d -v ./...
updatedeps:
go get -d -v -u -f ./...
testdeps:
go get -d -v -t ./...
updatetestdeps:
go get -d -v -t -u -f ./...
build: deps
go build ./...
install: deps
go install ./...
lint: testdeps
go get -v github.com/golang/lint/golint
for file in $$(find . -name '*.go' | grep -v '\.pb\.go' | grep -v '\.pb\.gw\.go' | grep -v '\.pb\.log\.go'); do \
golint $$file; \
if [ -n "$$(golint $$file)" ]; then \
exit 1; \
fi; \
done
vet: testdeps
go vet ./...
errcheck: testdeps
go get -v github.com/kisielk/errcheck
errcheck ./...
pretest: lint vet errcheck
test: testdeps pretest
go test ./...
clean:
go clean ./...
.PHONY: \
all \
deps \
updatedeps \
testdeps \
updatetestdeps \
build \
lint \
vet \
errcheck \
pretest \
test \
clean
@@ -0,0 +1,3 @@
[![CircleCI](https://circleci.com/gh/peter-edge/go-protoeasy/tree/master.png)](https://circleci.com/gh/peter-edge/go-protoeasy/tree/master)
[![GoDoc](http://img.shields.io/badge/GoDoc-Reference-blue.svg)](https://godoc.org/go.pedge.io/protoeasy)
[![MIT License](http://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/peter-edge/go-protoeasy/blob/master/LICENSE)
@@ -0,0 +1,8 @@
dependencies:
override:
- mkdir -p "${GOPATH}/src/go.pedge.io/protoeasy"
- rsync -azC --delete ./ "${GOPATH}/src/go.pedge.io/protoeasy/"
- make -C "${GOPATH}/src/go.pedge.io/protoeasy" testdeps
test:
override:
- make -C "${GOPATH}/src/go.pedge.io/protoeasy" test
@@ -0,0 +1 @@
package protoeasy // import "go.pedge.io/protoeasy"

0 comments on commit 9a14f86

Please sign in to comment.