Skip to content

Commit

Permalink
Add JMESPath JSON and type query vendored library
Browse files Browse the repository at this point in the history
  • Loading branch information
jasdel committed Nov 10, 2015
1 parent 3c647c7 commit e1ddc25
Show file tree
Hide file tree
Showing 679 changed files with 9,423 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ doc
Gemfile.lock
private/features/smoke/**/importmarker__.go
private/features/smoke/_test/
/vendor/bin/
/vendor/pkg/
/vendor/src/
32 changes: 22 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ LINTIGNORESTUTTER='service/[^/]+/(api|service)\.go:.+(and that stutters)'
LINTIGNOREINFLECT='service/[^/]+/(api|service)\.go:.+method .+ should be '
LINTIGNOREDEPS='vendor/.+\.go'

default: generate unit
SDK_WITH_VENDOR_PKGS=$(shell go list ./... | grep -v "/vendor/src")
SDK_ONLY_PKGS=$(shell go list ./... | grep -v "/vendor/")

all: generate unit

help:
@echo "Please use \`make <target>' where <target> is one of"
Expand Down Expand Up @@ -39,10 +42,12 @@ gen-endpoints:
go generate ./private/endpoints

build:
go build ./...
@echo "go build SDK and vendor packages"
@go build $(SDK_WITH_VENDOR_PKGS)

unit: get-deps-unit build verify
go test ./...
@echo "go test SDK and vendor packages"
@go test $(SDK_WITH_VENDOR_PKGS)

integration: get-deps-integ
go test ./awstesting/integration/customizations/... -tags=integration
Expand All @@ -51,35 +56,42 @@ integration: get-deps-integ
verify: get-deps-verify lint vet

lint:
@echo "golint ./..."
@echo "go lint SDK and vendor packages"
@lint=`golint ./...`; \
lint=`echo "$$lint" | grep -E -v -e ${LINTIGNOREDOT} -e ${LINTIGNOREDOC} -e ${LINTIGNORECONST} -e ${LINTIGNORESTUTTER} -e ${LINTIGNOREINFLECT} -e ${LINTIGNOREDEPS}`; \
echo "$$lint"; \
if [ "$$lint" != "" ]; then exit 1; fi

vet:
@echo "go vet ./..."
@echo "go vet SDK and vendor packages"
@go tool vet -all -shadow .

get-deps: get-deps-unit get-deps-integ get-deps-verify
@go get -v ./...
@echo "go get SDK dependencies"
@go get -v $(SDK_ONLY_PKGS)

get-deps-unit:
@go get github.com/stretchr/testify
@echo "go get SDK unit testing dependancies"
go get github.com/stretchr/testify

get-deps-integ: get-deps-unit
@go get github.com/lsegal/gucumber/cmd/gucumber
@echo "go get SDK integration testing dependencies"
go get github.com/lsegal/gucumber/cmd/gucumber

get-deps-verify:
@go get github.com/golang/lint/golint
@echo "go get SDK verification utilities"
go get github.com/golang/lint/golint

bench:
@go test -bench . -benchmem -tags 'bench' ./...
@echo "go bench SDK packages"
@go test -bench . -benchmem -tags 'bench' $(SDK_ONLY_PKGS)

bench-protocol:
@echo "go bench SDK protocol marshallers"
@go test -bench . -benchmem -tags 'bench' ./private/protocol/...

docs:
@echo "generate SDK docs"
rm -rf doc && bundle install && bundle exec yard

api_info:
Expand Down
4 changes: 4 additions & 0 deletions vendor/github.com/jmespath/go-jmespath/.gitignore

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

9 changes: 9 additions & 0 deletions vendor/github.com/jmespath/go-jmespath/.travis.yml

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/jmespath/go-jmespath/LICENSE

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

44 changes: 44 additions & 0 deletions vendor/github.com/jmespath/go-jmespath/Makefile

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

7 changes: 7 additions & 0 deletions vendor/github.com/jmespath/go-jmespath/README.md

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

12 changes: 12 additions & 0 deletions vendor/github.com/jmespath/go-jmespath/api.go

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

16 changes: 16 additions & 0 deletions vendor/github.com/jmespath/go-jmespath/astnodetype_string.go

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

96 changes: 96 additions & 0 deletions vendor/github.com/jmespath/go-jmespath/compliance/basic.json

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

Loading

0 comments on commit e1ddc25

Please sign in to comment.