| 1234567891011121314151617181920212223242526272829303132333435 | #!/bin/bash## This script sets up a Kokoro MacOS worker for running Protobuf tests### Select Xcode versionexport DEVELOPER_DIR=/Applications/Xcode_8.1.app/Contents/Developer### Select C/C++ compilersexport CC=gccexport CXX=g++### Install Brew and core softwaresruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"source $HOME/.rvm/scripts/rvmbrew tap homebrew/homebrew-phpbrew uninstall node icu4cbrew install gflags gpg gpg2 node pcre php56 ruby### Install Toxsudo pip install tox==2.4.1### Install RVMgpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -curl -sSL https://get.rvm.io | bash -s stable --ruby
 |