Skip to content

Commit d8257fe

Browse files
author
Daniil Kukharau
authored
Update .travis.yml (#12)
* Update .travis.yml * Fix env section * Don't generate options in default target
1 parent 19ff4c9 commit d8257fe

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

.travis.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@ go:
44
- "1.10"
55

66
env:
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

1520
script:
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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
GOPATH ?= $(HOME)/go
22
SRCPATH := $(patsubst %/,%,$(GOPATH))/src
33

4-
default: options install
4+
default: install
55

66
.PHONY: options
77
options:

0 commit comments

Comments
 (0)