Skip to content

Commit

Permalink
setup protobuf compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
gfr10598 committed May 8, 2018
1 parent eda34fe commit 45f5512
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,21 @@ install:
# Install dependencies
- GO_IMPORTS=$(go list -f '{{join .Imports "\n"}}{{"\n"}}{{join .TestImports "\n"}}' ./... | sort | uniq | grep -v etl-gardener)
- go get -u -v -d $GO_IMPORTS
- go get github.com/golang/protobuf/protoc-gen-go/

# Install protobuf compiler
- wget https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip
- unzip protoc-3.5.1-linux-x86_64.zip # Should provide bin/protoc

script:
# Compile protobufs
- cd $TRAVIS_BUILD_DIR/pb
- $TRAVIS_BUILD_DIR/bin/protoc --go_out=. *.proto
- cd $TRAVIS_BUILD_DIR


# To start, run all the non-integration tests.
- MODULES="inetdiag"
- MODULES="inetdiag pb"
- for module in $MODULES; do
COVER_PKGS=${COVER_PKGS}./$module/..., ;
done
Expand Down

0 comments on commit 45f5512

Please sign in to comment.