#!/bin/bashset-ex# Change to the script's directorycd$(dirname$0)# Download 3.0.0 version of protocPROTOC_BINARY_NAME="protoc-3.0.0-linux-x86_64.exe"if[`uname`="Darwin"];thenPROTOC_BINARY_NAME="protoc-3.0.0-osx-x86_64.exe"fiwget http://repo1.maven.org/maven2/com/google/protobuf/protoc/3.0.0/${PROTOC_BINARY_NAME}-O protocchmod +x protoc# Run testsrake test