Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
2 | |||||
3 | set -ex | ||||
4 | |||||
5 | # Change to the script's directory | ||||
6 | cd $(dirname $0) | ||||
7 | |||||
8 | # Download 3.0.0 version of protoc | ||||
9 | PROTOC_BINARY_NAME="protoc-3.0.0-linux-x86_64.exe" | ||||
10 | if [ `uname` = "Darwin" ]; then | ||||
11 | PROTOC_BINARY_NAME="protoc-3.0.0-osx-x86_64.exe" | ||||
12 | fi | ||||
13 | wget http://repo1.maven.org/maven2/com/google/protobuf/protoc/3.0.0/${PROTOC_BINARY_NAME} -O protoc | ||||
14 | chmod +x protoc | ||||
15 | |||||
16 | # Run tests | ||||
17 | rake test |