Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Commit

Permalink
Problem: Travis CI building fails (fixes #2226)
Browse files Browse the repository at this point in the history
Solution:
- added a step install a newer protoc
  • Loading branch information
tomtau committed Sep 16, 2020
1 parent 2f0fb2d commit 3d44313
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -35,7 +35,6 @@ rust: &rust
- binutils-dev
- libc6-dev
- libudev-dev
- protobuf-compiler
cache:
directories:
- $HOME/.cargo
Expand All @@ -58,6 +57,7 @@ rust: &rust
- TDBE_MRENCLAVE=0000000000000000000000000000000000000000000000000000000000000000
- NETWORK_ID=ab
before_install: # versions from https://github.com/erickt/rust-zmq/blob/master/.travis.yml
- ./ci-scripts/install_protoc.sh
- |
if [[ "$TRAVIS_RUST_VERSION" != nightly ]]; then
sed -i.bak -E "s/default = \[\".+\"\]/default = \[\"mock-enclave\"\]/" chain-abci/Cargo.toml;
Expand Down
9 changes: 9 additions & 0 deletions ci-scripts/install_protoc.sh
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

PROTOBUF_VERSION=3.3.0
PROTOC_FILENAME=protoc-${PROTOBUF_VERSION}-linux-x86_64.zip
pushd /home/travis
wget https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/${PROTOC_FILENAME}
unzip ${PROTOC_FILENAME}
bin/protoc --version
popd

0 comments on commit 3d44313

Please sign in to comment.