Skip to content

Commit

Permalink
Exiting Travis CI build early if proto compilation fails
Browse files Browse the repository at this point in the history
  • Loading branch information
antoninbas committed Sep 25, 2018
1 parent 4fd3fc9 commit f7dbc9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ install:
# We check that the P4Runtime Protobuf files are correct (by compiling them with
# protoc), then we generate the HTML for the spec.
script:
- docker run -t p4runtime-ci /p4runtime/CI/compile_protos.sh /tmp/
- docker run -t p4runtime-ci /p4runtime/CI/compile_protos.sh /tmp/ || travis_terminate 1
- docker run -v `pwd`/docs/v1:/usr/src/p4-spec p4lang/p4rt-madoko:latest make

after_success:
Expand Down

0 comments on commit f7dbc9c

Please sign in to comment.