Skip to content

Commit

Permalink
travis: fail unformatted protos
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Apr 23, 2018
1 parent f550dd1 commit 7492aa3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@ go:

sudo: required

env:
global:
- PATH=$HOME/.local/bin:$PATH

install:
- curl https://glide.sh/get | sh
- mkdir -p $HOME/.local/bin
- curl -o $HOME/.local/bin/prototool -sSL https://github.com/uber/prototool/releases/download/v0.1.0/prototool-$(uname -s)-$(uname -m)
- chmod +x $HOME/.local/bin/prototool

script:
- prototool format -d api/v3/clairpb/clair.proto
- prototool lint api/v3/clairpb/clair.proto
- go test $(glide novendor | grep -v contrib)

dist: trusty
Expand Down

0 comments on commit 7492aa3

Please sign in to comment.