File tree Expand file tree Collapse file tree 2 files changed +16
-11
lines changed
Expand file tree Collapse file tree 2 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 44 - " 1.10"
55
66env :
7- - DEP_VERSION="0.4.1"
7+ - DEP_VERSION="0.4.1" PROTOC_VERSION="3.6.1"
88
9- before_install :
10- # Download the binary to bin folder in $GOPATH
9+ install :
10+ # Download and install dep
1111 - curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
12- # Make the binary executable
1312 - chmod +x $GOPATH/bin/dep
13+ # Download and install protobuf
14+ - curl -L -s https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/protoc-${PROTOC_VERSION}-linux-x86_64.zip -o protoc.zip
15+ - unzip protoc.zip
16+ - cp -r ./bin/protoc ./include $HOME/bin/
17+ # Download plugin golang dependencies
18+ - make vendor
1419
1520script :
16- - make vendor
17- - make install
18- # NOTE: We will be able to run protoc commands from Travis once
19- # protoc-gen-atlas-query-validate is added to the atlas gentool. For now, we can just run
20- # tests to ensure that everything works as expected.
21- - go test -v ./...
21+ - make test
22+
23+ # Trigger build/push of latest gentool
24+ deploy :
25+ provider : script
26+ script : curl -LO --retry 3 https://raw.github.com/mernst/plume-lib/master/bin/trigger-travis.sh && sh trigger-travis.sh infobloxopen atlas-gentool $TRAVIS_ACCESS_TOKEN
Original file line number Diff line number Diff line change 11GOPATH ?= $(HOME ) /go
22SRCPATH := $(patsubst % /,% ,$(GOPATH ) ) /src
33
4- default : options install
4+ default : install
55
66.PHONY : options
77options :
You can’t perform that action at this time.
0 commit comments