Add vendor folder to git

This commit is contained in:
Lucas Käldström 2017-06-26 19:23:05 +03:00
parent 66cf5eaafb
commit 183585f56f
No known key found for this signature in database
GPG key ID: 600FEFBBD0D40D21
6916 changed files with 2629581 additions and 1 deletions

View file

@ -0,0 +1,62 @@
go get github.com/golang/protobuf/protoc-gen-go
# ONE TIME
#
#
############################# FOR E2E TESTING ########################################
# ensure vendorextension proto contract is compiled.
pushd $GOPATH/src/github.com/googleapis/gnostic/extensions
./COMPILE-EXTENSION.sh
popd
pushd $GOPATH/src/github.com/googleapis/gnostic/generator
./INSTALL.sh
pushd $GOPATH/src/github.com/googleapis/gnostic
go install
######################################################################################
# Now generate sample extension plugins and install them.
#
#
pushd $GOPATH/src/github.com/googleapis/gnostic/extensions
EXTENSION_OUT_DIR=$GOPATH/src/"github.com/googleapis/gnostic/extensions/sample/generated"
# For SAMPLE_ONE Extension Example
#
#
SAMPLE_ONE_EXTENSION_SCHEMA="sample/x-samplecompanyone.json"
generator --extension $SAMPLE_ONE_EXTENSION_SCHEMA --out_dir=$EXTENSION_OUT_DIR
pushd $EXTENSION_OUT_DIR/openapi_extensions_samplecompanyone/proto
protoc --go_out=Mgoogle/protobuf/any.proto=github.com/golang/protobuf/ptypes/any:. *.proto
go install
popd
pushd $EXTENSION_OUT_DIR/openapi_extensions_samplecompanyone
go install
popd
# For SAMPLE_TWO Extension Example
#
#
SAMPLE_TWO_EXTENSION_SCHEMA="sample/x-samplecompanytwo.json"
generator --extension $SAMPLE_TWO_EXTENSION_SCHEMA --out_dir=$EXTENSION_OUT_DIR
pushd $EXTENSION_OUT_DIR/openapi_extensions_samplecompanytwo/proto
protoc --go_out=Mgoogle/protobuf/any.proto=github.com/golang/protobuf/ptypes/any:. *.proto
go install
popd
pushd $EXTENSION_OUT_DIR/openapi_extensions_samplecompanytwo
go install
popd
popd