aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf/3.6.0/kokoro/macos
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/protobuf/3.6.0/kokoro/macos')
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/cpp/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/cpp/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/cpp/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/cpp_distcheck/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/cpp_distcheck/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/cpp_distcheck/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/javascript/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/javascript/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/javascript/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/jruby/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/jruby/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/jruby/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/objectivec_cocoapods_integration/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/objectivec_cocoapods_integration/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/objectivec_cocoapods_integration/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_debug/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_debug/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_debug/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_release/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_release/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_release/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/objectivec_osx/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/objectivec_osx/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/objectivec_osx/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/php5.6_mac/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/php5.6_mac/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/php5.6_mac/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/php7.0_mac/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/php7.0_mac/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/php7.0_mac/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/prepare_build_macos_rc35
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/python/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/python/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/python/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/python_cpp/build.sh12
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/python_cpp/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/python_cpp/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/ruby21/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/ruby21/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/ruby21/presubmit.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/ruby22/build.sh11
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/ruby22/continuous.cfg5
-rw-r--r--third_party/protobuf/3.6.0/kokoro/macos/ruby22/presubmit.cfg5
43 files changed, 330 insertions, 0 deletions
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/cpp/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/cpp/build.sh
new file mode 100644
index 0000000000..bae2ebbc5f
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/cpp/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh cpp
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/cpp/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/cpp/continuous.cfg
new file mode 100644
index 0000000000..4bea1cbbb1
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/cpp/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/cpp/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/cpp/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/cpp/presubmit.cfg
new file mode 100644
index 0000000000..4bea1cbbb1
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/cpp/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/cpp/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/cpp_distcheck/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/cpp_distcheck/build.sh
new file mode 100644
index 0000000000..d729b63db1
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/cpp_distcheck/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh cpp_distcheck
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/cpp_distcheck/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/cpp_distcheck/continuous.cfg
new file mode 100644
index 0000000000..89441bcca0
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/cpp_distcheck/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/cpp_distcheck/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/cpp_distcheck/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/cpp_distcheck/presubmit.cfg
new file mode 100644
index 0000000000..89441bcca0
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/cpp_distcheck/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/cpp_distcheck/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/javascript/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/javascript/build.sh
new file mode 100644
index 0000000000..016832a32e
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/javascript/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh javascript
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/javascript/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/javascript/continuous.cfg
new file mode 100644
index 0000000000..b478cc1939
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/javascript/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/javascript/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/javascript/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/javascript/presubmit.cfg
new file mode 100644
index 0000000000..b478cc1939
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/javascript/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/javascript/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/jruby/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/jruby/build.sh
new file mode 100644
index 0000000000..c82eaebfbd
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/jruby/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh jruby
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/jruby/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/jruby/continuous.cfg
new file mode 100644
index 0000000000..f1310fd349
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/jruby/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/jruby/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/jruby/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/jruby/presubmit.cfg
new file mode 100644
index 0000000000..f1310fd349
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/jruby/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/jruby/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/objectivec_cocoapods_integration/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_cocoapods_integration/build.sh
new file mode 100644
index 0000000000..f96d2899d9
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_cocoapods_integration/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh objectivec_cocoapods_integration
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/objectivec_cocoapods_integration/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_cocoapods_integration/continuous.cfg
new file mode 100644
index 0000000000..952874ed11
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_cocoapods_integration/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/objectivec_cocoapods_integration/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/objectivec_cocoapods_integration/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_cocoapods_integration/presubmit.cfg
new file mode 100644
index 0000000000..952874ed11
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_cocoapods_integration/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/objectivec_cocoapods_integration/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_debug/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_debug/build.sh
new file mode 100644
index 0000000000..1055d72ecb
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_debug/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh objectivec_ios_debug
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_debug/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_debug/continuous.cfg
new file mode 100644
index 0000000000..473d54554a
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_debug/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/objectivec_ios_debug/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_debug/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_debug/presubmit.cfg
new file mode 100644
index 0000000000..473d54554a
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_debug/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/objectivec_ios_debug/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_release/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_release/build.sh
new file mode 100644
index 0000000000..76ce3ba0b5
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_release/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh objectivec_ios_release
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_release/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_release/continuous.cfg
new file mode 100644
index 0000000000..3cbfb685d8
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_release/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/objectivec_ios_release/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_release/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_release/presubmit.cfg
new file mode 100644
index 0000000000..3cbfb685d8
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_ios_release/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/objectivec_ios_release/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/objectivec_osx/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_osx/build.sh
new file mode 100644
index 0000000000..000be27460
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_osx/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh objectivec_osx
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/objectivec_osx/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_osx/continuous.cfg
new file mode 100644
index 0000000000..41bd46aa87
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_osx/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/objectivec_osx/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/objectivec_osx/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_osx/presubmit.cfg
new file mode 100644
index 0000000000..41bd46aa87
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/objectivec_osx/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/objectivec_osx/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/php5.6_mac/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/php5.6_mac/build.sh
new file mode 100644
index 0000000000..74878898fa
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/php5.6_mac/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh php5.6_mac
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/php5.6_mac/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/php5.6_mac/continuous.cfg
new file mode 100644
index 0000000000..ff345e9fc4
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/php5.6_mac/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/php5.6_mac/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/php5.6_mac/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/php5.6_mac/presubmit.cfg
new file mode 100644
index 0000000000..ff345e9fc4
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/php5.6_mac/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/php5.6_mac/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/php7.0_mac/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/php7.0_mac/build.sh
new file mode 100644
index 0000000000..e5a37e30ee
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/php7.0_mac/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh php7.0_mac
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/php7.0_mac/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/php7.0_mac/continuous.cfg
new file mode 100644
index 0000000000..c2c1811920
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/php7.0_mac/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/php7.0_mac/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/php7.0_mac/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/php7.0_mac/presubmit.cfg
new file mode 100644
index 0000000000..c2c1811920
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/php7.0_mac/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/php7.0_mac/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/prepare_build_macos_rc b/third_party/protobuf/3.6.0/kokoro/macos/prepare_build_macos_rc
new file mode 100644
index 0000000000..fb975523a4
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/prepare_build_macos_rc
@@ -0,0 +1,35 @@
+#!/bin/bash
+#
+# This script sets up a Kokoro MacOS worker for running Protobuf tests
+
+##
+# Select Xcode version
+
+export DEVELOPER_DIR=/Applications/Xcode_9.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)"
+source $HOME/.rvm/scripts/rvm
+brew tap homebrew/homebrew-php
+brew uninstall node icu4c
+brew install gflags gpg gpg2 node pcre php56 ruby
+
+##
+# 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
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/python/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/python/build.sh
new file mode 100644
index 0000000000..6b17b95446
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/python/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh python
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/python/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/python/continuous.cfg
new file mode 100644
index 0000000000..0fc8b503e8
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/python/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/python/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/python/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/python/presubmit.cfg
new file mode 100644
index 0000000000..0fc8b503e8
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/python/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/python/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/python_cpp/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/python_cpp/build.sh
new file mode 100644
index 0000000000..cb53def9d3
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/python_cpp/build.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+g++ --version
+
+./tests.sh python_cpp
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/python_cpp/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/python_cpp/continuous.cfg
new file mode 100644
index 0000000000..22f4a0e4c9
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/python_cpp/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/python_cpp/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/python_cpp/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/python_cpp/presubmit.cfg
new file mode 100644
index 0000000000..22f4a0e4c9
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/python_cpp/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/python_cpp/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/ruby21/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/ruby21/build.sh
new file mode 100644
index 0000000000..748ea65595
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/ruby21/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh ruby21
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/ruby21/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/ruby21/continuous.cfg
new file mode 100644
index 0000000000..489796daf2
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/ruby21/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/ruby21/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/ruby21/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/ruby21/presubmit.cfg
new file mode 100644
index 0000000000..489796daf2
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/ruby21/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/ruby21/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/ruby22/build.sh b/third_party/protobuf/3.6.0/kokoro/macos/ruby22/build.sh
new file mode 100644
index 0000000000..5c4de42952
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/ruby22/build.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# Build file to set up and run tests
+
+# Change to repo root
+cd $(dirname $0)/../../..
+
+# Prepare worker environment to run tests
+source kokoro/macos/prepare_build_macos_rc
+
+./tests.sh ruby22
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/ruby22/continuous.cfg b/third_party/protobuf/3.6.0/kokoro/macos/ruby22/continuous.cfg
new file mode 100644
index 0000000000..d27054417a
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/ruby22/continuous.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/ruby22/build.sh"
+timeout_mins: 1440
diff --git a/third_party/protobuf/3.6.0/kokoro/macos/ruby22/presubmit.cfg b/third_party/protobuf/3.6.0/kokoro/macos/ruby22/presubmit.cfg
new file mode 100644
index 0000000000..d27054417a
--- /dev/null
+++ b/third_party/protobuf/3.6.0/kokoro/macos/ruby22/presubmit.cfg
@@ -0,0 +1,5 @@
+# Config file for running tests in Kokoro
+
+# Location of the build script in repository
+build_file: "protobuf/kokoro/macos/ruby22/build.sh"
+timeout_mins: 1440