test.sh 407 B

1234567891011121314151617
  1. #!/bin/bash
  2. set -ex
  3. # Change to the script's directory
  4. cd $(dirname $0)
  5. # Download 3.0.0 version of protoc
  6. PROTOC_BINARY_NAME="protoc-3.0.0-linux-x86_64.exe"
  7. if [ `uname` = "Darwin" ]; then
  8. PROTOC_BINARY_NAME="protoc-3.0.0-osx-x86_64.exe"
  9. fi
  10. wget https://repo1.maven.org/maven2/com/google/protobuf/protoc/3.0.0/${PROTOC_BINARY_NAME} -O protoc
  11. chmod +x protoc
  12. # Run tests
  13. RUBYLIB=../../lib:. rake test