Merge pull request #3191 from matt-kwong/kokoro
Add MacOS and Linux tests to Kokoro
This commit is contained in:
commit
d4d41af19b
6
kokoro/README.md
Normal file
6
kokoro/README.md
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
Kokoro Infrastructure
|
||||
----------------------
|
||||
|
||||
The files in this directory serve as plumbing for running Protobuf
|
||||
tests under Kokoro, our internal CI.
|
11
kokoro/linux/cpp_distcheck/build.sh
Executable file
11
kokoro/linux/cpp_distcheck/build.sh
Executable file
@ -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/linux/prepare_build_linux_rc
|
||||
|
||||
./tests.sh cpp_distcheck
|
5
kokoro/linux/cpp_distcheck/presubmit.cfg
Normal file
5
kokoro/linux/cpp_distcheck/presubmit.cfg
Normal file
@ -0,0 +1,5 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/cpp_distcheck/build.sh"
|
||||
timeout_mins: 1440
|
11
kokoro/linux/csharp/build.sh
Executable file
11
kokoro/linux/csharp/build.sh
Executable file
@ -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/linux/prepare_build_linux_rc
|
||||
|
||||
./tests.sh csharp
|
5
kokoro/linux/csharp/presubmit.cfg
Normal file
5
kokoro/linux/csharp/presubmit.cfg
Normal file
@ -0,0 +1,5 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/csharp/build.sh"
|
||||
timeout_mins: 1440
|
11
kokoro/linux/java_compatibility/build.sh
Executable file
11
kokoro/linux/java_compatibility/build.sh
Executable file
@ -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/linux/prepare_build_linux_rc
|
||||
|
||||
./tests.sh java_compatibility
|
5
kokoro/linux/java_compatibility/presubmit.cfg
Normal file
5
kokoro/linux/java_compatibility/presubmit.cfg
Normal file
@ -0,0 +1,5 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/java_compatibility/build.sh"
|
||||
timeout_mins: 1440
|
9
kokoro/linux/prepare_build_linux_rc
Normal file
9
kokoro/linux/prepare_build_linux_rc
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Source this rc script to prepare the environment for Linux builds
|
||||
|
||||
# Set up dotnet
|
||||
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ trusty main" > /etc/apt/sources.list.d/dotnetdev.list'
|
||||
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y dotnet-dev-1.0.4
|
11
kokoro/linux/python_compatibility/build.sh
Executable file
11
kokoro/linux/python_compatibility/build.sh
Executable file
@ -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/linux/prepare_build_linux_rc
|
||||
|
||||
./tests.sh python_compatibility
|
5
kokoro/linux/python_compatibility/presubmit.cfg
Normal file
5
kokoro/linux/python_compatibility/presubmit.cfg
Normal file
@ -0,0 +1,5 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/python_compatibility/build.sh"
|
||||
timeout_mins: 1440
|
11
kokoro/macos/cpp/build.sh
Executable file
11
kokoro/macos/cpp/build.sh
Executable file
@ -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
|
5
kokoro/macos/cpp/presubmit.cfg
Normal file
5
kokoro/macos/cpp/presubmit.cfg
Normal file
@ -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
|
11
kokoro/macos/cpp_distcheck/build.sh
Executable file
11
kokoro/macos/cpp_distcheck/build.sh
Executable file
@ -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
|
5
kokoro/macos/cpp_distcheck/presubmit.cfg
Normal file
5
kokoro/macos/cpp_distcheck/presubmit.cfg
Normal file
@ -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
|
11
kokoro/macos/javascript/build.sh
Executable file
11
kokoro/macos/javascript/build.sh
Executable file
@ -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
|
5
kokoro/macos/javascript/presubmit.cfg
Normal file
5
kokoro/macos/javascript/presubmit.cfg
Normal file
@ -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
|
11
kokoro/macos/jruby/build.sh
Executable file
11
kokoro/macos/jruby/build.sh
Executable file
@ -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
|
5
kokoro/macos/jruby/presubmit.cfg
Normal file
5
kokoro/macos/jruby/presubmit.cfg
Normal file
@ -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
|
11
kokoro/macos/objectivec_cocoapods_integration/build.sh
Executable file
11
kokoro/macos/objectivec_cocoapods_integration/build.sh
Executable file
@ -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
|
@ -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
|
11
kokoro/macos/objectivec_ios_debug/build.sh
Executable file
11
kokoro/macos/objectivec_ios_debug/build.sh
Executable file
@ -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
|
5
kokoro/macos/objectivec_ios_debug/presubmit.cfg
Normal file
5
kokoro/macos/objectivec_ios_debug/presubmit.cfg
Normal file
@ -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
|
11
kokoro/macos/objectivec_ios_release/build.sh
Executable file
11
kokoro/macos/objectivec_ios_release/build.sh
Executable file
@ -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
|
5
kokoro/macos/objectivec_ios_release/presubmit.cfg
Normal file
5
kokoro/macos/objectivec_ios_release/presubmit.cfg
Normal file
@ -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
|
11
kokoro/macos/objectivec_osx/build.sh
Executable file
11
kokoro/macos/objectivec_osx/build.sh
Executable file
@ -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
|
5
kokoro/macos/objectivec_osx/presubmit.cfg
Normal file
5
kokoro/macos/objectivec_osx/presubmit.cfg
Normal file
@ -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
|
11
kokoro/macos/php5.6_mac/build.sh
Executable file
11
kokoro/macos/php5.6_mac/build.sh
Executable file
@ -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
|
5
kokoro/macos/php5.6_mac/presubmit.cfg
Normal file
5
kokoro/macos/php5.6_mac/presubmit.cfg
Normal file
@ -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
|
11
kokoro/macos/php7.0_mac/build.sh
Executable file
11
kokoro/macos/php7.0_mac/build.sh
Executable file
@ -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
|
5
kokoro/macos/php7.0_mac/presubmit.cfg
Normal file
5
kokoro/macos/php7.0_mac/presubmit.cfg
Normal file
@ -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
|
33
kokoro/macos/prepare_build_macos_rc
Executable file
33
kokoro/macos/prepare_build_macos_rc
Executable file
@ -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
|
11
kokoro/macos/python/build.sh
Executable file
11
kokoro/macos/python/build.sh
Executable file
@ -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
|
5
kokoro/macos/python/presubmit.cfg
Normal file
5
kokoro/macos/python/presubmit.cfg
Normal file
@ -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
|
12
kokoro/macos/python_cpp/build.sh
Executable file
12
kokoro/macos/python_cpp/build.sh
Executable file
@ -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
|
5
kokoro/macos/python_cpp/presubmit.cfg
Normal file
5
kokoro/macos/python_cpp/presubmit.cfg
Normal file
@ -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
|
11
kokoro/macos/ruby21/build.sh
Executable file
11
kokoro/macos/ruby21/build.sh
Executable file
@ -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
|
5
kokoro/macos/ruby21/presubmit.cfg
Normal file
5
kokoro/macos/ruby21/presubmit.cfg
Normal file
@ -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
|
11
kokoro/macos/ruby22/build.sh
Executable file
11
kokoro/macos/ruby22/build.sh
Executable file
@ -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
|
5
kokoro/macos/ruby22/presubmit.cfg
Normal file
5
kokoro/macos/ruby22/presubmit.cfg
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user