Skip to content
This repository was archived by the owner on Jul 1, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Godeps/Godeps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Godeps/Readme

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 14 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ DOC := $(DOC_DIR)/swagger.json

GO_ENV := GOPATH=$(GOPATH)
GO_LINT := PATH=${PATH}:$(GOPATH)/bin golint
GO_DEP := PATH=${PATH}:$(GOPATH)/bin godep go
GO := $(GO_ENV) go

ifeq ($(CI),1)
Expand All @@ -28,31 +29,28 @@ endif
default: build

install-deps:
$(GO) get -u github.com/satori/go.uuid
$(GO) get -u github.com/naoina/denco
$(GO) get -u gopkg.in/yaml.v2
$(GO) get -u github.com/dgrijalva/jwt-go
$(GO) get -u github.com/spf13/cobra/cobra
$(GO) get -u github.com/golang/lint/golint

$(GO) get -u github.com/tools/godep

build: fmt vet
$(GO) build ./...
$(GO) build -o $(DIST_DIR)/$(SERVER_TARGET) ./server/main
$(GO) build -o $(DIST_DIR)/$(CLI_TARGET) ./cli/main

vet:
$(GO) vet ./...
$(GO) vet $$($(GO) list ./... | grep -v vendor)

lint:
if [ $$($(GO_LINT) ./... | wc -l) != 0 ]; then \
if $(is_ci); then \
echo "FATAL: you should run 'make lint' on your local system"; \
exit 1; \
fi; \
fi
for p in $$($(GO) list ./... | grep -v vendor); do \
if [ $$($(GO_LINT) $${p} | wc -l) != 0 ]; then \
if $(is_ci); then \
echo "FATAL: you should run 'make lint' on your local system"; \
exit 1; \
fi; \
fi; \
done

fmt:
if [ $$($(GO) fmt ./... | wc -l) != 0 ]; then \
if [ $$($(GO) fmt $$($(GO) list ./... | grep -v vendor) | wc -l) != 0 ]; then \
if $(is_ci); then \
echo "FATAL: you should run 'make fmt' on your local system"; \
exit 1; \
Expand All @@ -69,7 +67,7 @@ cross: fmt vet
done

test:
$(GO) test ./...
$(GO) test $$($(GO) list ./... | grep -v vendor)

doc:
swagger generate spec -o $(DOC) -b ./server/main
Expand Down
2 changes: 1 addition & 1 deletion ci/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ show_cover_report() {

main() {
get_opts "${@}"
generate_cover_data $(go list ./...)
generate_cover_data $(go list ./... | grep -v vendor)

if "${SHOW_COVER_REPORT}"; then
show_cover_report
Expand Down
4 changes: 4 additions & 0 deletions vendor/github.com/dgrijalva/jwt-go/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions vendor/github.com/dgrijalva/jwt-go/.travis.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions vendor/github.com/dgrijalva/jwt-go/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 97 additions & 0 deletions vendor/github.com/dgrijalva/jwt-go/MIGRATION_GUIDE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

85 changes: 85 additions & 0 deletions vendor/github.com/dgrijalva/jwt-go/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading