diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2017-07-18 16:26:16 -0700 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2017-07-18 16:26:16 -0700 |
commit | 3af881c7e2db0553207876acbdb91c6e77974e44 (patch) | |
tree | 35e2a96cce802d4235bd29afa396e28ead892fa2 /kokoro/macos/prepare_build_macos_rc | |
parent | 86975301f1876ce1934612777b8ca6c76520f5cc (diff) | |
parent | 942a29cecd36f2a4b22fdd2179635cd548e6bd27 (diff) |
Merge master into 3.4.x
Diffstat (limited to 'kokoro/macos/prepare_build_macos_rc')
-rwxr-xr-x | kokoro/macos/prepare_build_macos_rc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/kokoro/macos/prepare_build_macos_rc b/kokoro/macos/prepare_build_macos_rc new file mode 100755 index 00000000..2b9f4df2 --- /dev/null +++ b/kokoro/macos/prepare_build_macos_rc @@ -0,0 +1,33 @@ +#!/bin/bash +# +# This script sets up a Kokoro MacOS worker for running Protobuf tests + +## +# Select Xcode version + +export DEVELOPER_DIR=/Applications/Xcode_8.1.app/Contents/Developer + +## +# Select C/C++ compilers + +export CC=gcc +export CXX=g++ + +## +# Install Brew and core softwares + +ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +brew tap homebrew/homebrew-php +brew install autoconf automake ccache cmake gflags gpg gpg2 libtool maven node pcre php56 ruby wget + +## +# Install Tox + +sudo pip install tox==2.4.1 + +## +# Install RVM + +gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 +command curl -sSL https://rvm.io/mpapis.asc | gpg2 --import - +curl -sSL https://get.rvm.io | bash -s stable --ruby |