2017-02-24 01:53:06 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
# Change to the script's directory
|
|
|
|
cd $(dirname $0)
|
|
|
|
|
|
|
|
# Download 3.0.0 version of protoc
|
|
|
|
PROTOC_BINARY_NAME="protoc-3.0.0-linux-x86_64.exe"
|
|
|
|
if [ `uname` = "Darwin" ]; then
|
|
|
|
PROTOC_BINARY_NAME="protoc-3.0.0-osx-x86_64.exe"
|
|
|
|
fi
|
2020-01-22 20:29:56 +00:00
|
|
|
wget https://repo1.maven.org/maven2/com/google/protobuf/protoc/3.0.0/${PROTOC_BINARY_NAME} -O protoc
|
2017-02-24 01:53:06 +00:00
|
|
|
chmod +x protoc
|
|
|
|
|
|
|
|
# Run tests
|
|
|
|
rake test
|