ADD: added new version of protobuf
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#
|
||||
# Use the provided functions below as build/test fixtures, e.g.:
|
||||
#
|
||||
# source kokoro/common/capture_logs.sh
|
||||
# source kokoro/capture_logs.sh
|
||||
# caplog build/step1 <build command>
|
||||
# caplog tests/step2 <test command>
|
||||
#
|
||||
@@ -1,46 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Helper for setting up common bazel flags in Kokoro.
|
||||
#
|
||||
# This script prints extra flags to a bazel invocation when it is run from
|
||||
# Kokoro. When the special environment variables are not present (e.g., if you
|
||||
# run Kokoro build scripts locally), this script only flips some debug settings.
|
||||
#
|
||||
# Example of running directly:
|
||||
# bazel test $(path/to/bazel_flags.sh) //...
|
||||
|
||||
function bazel_flags::gen_invocation_id() {
|
||||
# Create a new invocation ID and store in the artifacts dir.
|
||||
local _invocation_id=$(uuidgen | tr A-Z a-z)
|
||||
|
||||
# Put the new invocation ID at the start of the output IDs file. Some
|
||||
# Google-internal tools only look at the first entry, so this ensures the most
|
||||
# recent entry is first.
|
||||
local _ids_file=${KOKORO_ARTIFACTS_DIR}/bazel_invocation_ids
|
||||
local _temp_ids=$(mktemp)
|
||||
echo ${_invocation_id} > ${_temp_ids}
|
||||
[[ -e ${_ids_file} ]] && cat ${_ids_file} >> ${_temp_ids}
|
||||
mv -f ${_temp_ids} ${_ids_file}
|
||||
|
||||
echo -n ${_invocation_id}
|
||||
}
|
||||
|
||||
# Prints flags to use on Kokoro.
|
||||
function bazel_flags::kokoro_flags() {
|
||||
[[ -n ${KOKORO_JOB_NAME:-} ]] || return
|
||||
|
||||
local -a _flags
|
||||
_flags+=(
|
||||
--invocation_id=$(bazel_flags::gen_invocation_id)
|
||||
--remote_cache=https://storage.googleapis.com/protobuf-bazel-cache/${KOKORO_JOB_NAME}
|
||||
)
|
||||
if [[ -n ${KOKORO_BAZEL_AUTH_CREDENTIAL:-} ]]; then
|
||||
_flags+=( --google_credentials=${KOKORO_BAZEL_AUTH_CREDENTIAL} )
|
||||
else
|
||||
_flags+=( --google_default_credentials=true )
|
||||
fi
|
||||
|
||||
echo "${_flags[@]}"
|
||||
}
|
||||
|
||||
echo "$(bazel_flags::kokoro_flags) --keep_going --test_output=errors"
|
||||
@@ -1,84 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Build tests under CMake.
|
||||
#
|
||||
# This script is used from macos and linux builds. It runs cmake and ctest in
|
||||
# the current directory. Any additional setup should be done before running this
|
||||
# script.
|
||||
#
|
||||
# This script uses `caplog` to save logfiles. See caplog.sh for details.
|
||||
|
||||
set -eu -o pipefail
|
||||
: ${SCRIPT_ROOT:=$(cd $(dirname $0)/../..; pwd)}
|
||||
|
||||
################################################################################
|
||||
# If you are using this script to run tests, you can set some environment
|
||||
# variables to control behavior:
|
||||
#
|
||||
# By default, find the sources based on this script's path.
|
||||
: ${SOURCE_DIR:=${SCRIPT_ROOT}}
|
||||
#
|
||||
# By default, put outputs under <git root>/cmake/build.
|
||||
: ${BUILD_DIR:=${SOURCE_DIR}/cmake/build}
|
||||
#
|
||||
# CMAKE_BUILD_TYPE is supported in cmake 3.22+. If set, we pass the value of this
|
||||
# variable explicitly for compatibility with older versions of cmake. See:
|
||||
# https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html
|
||||
# (N.B.: not to be confused with CMAKE_CONFIG_TYPE.)
|
||||
if [[ -n ${CMAKE_BUILD_TYPE:-} ]]; then
|
||||
CMAKE_BUILD_TYPE_FLAG="-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}"
|
||||
else
|
||||
CMAKE_BUILD_TYPE_FLAG=
|
||||
fi
|
||||
#
|
||||
# For several other CMake options, see docs here:
|
||||
# https://cmake.org/cmake/help/latest/manual/cmake-env-variables.7.html
|
||||
#
|
||||
# Some variables you may want to override (see cmake docs for details):
|
||||
# CMAKE_BUILD_PARALLEL_LEVEL
|
||||
# CMAKE_CONFIG_TYPE (N.B.: not to be confused with CMAKE_BUILD_TYPE)
|
||||
# CMAKE_GENERATOR
|
||||
# CTEST_PARALLEL_LEVEL
|
||||
################################################################################
|
||||
|
||||
echo "Building using..."
|
||||
echo " Sources: ${SOURCE_DIR}"
|
||||
echo " Build output: ${BUILD_DIR}"
|
||||
if [[ ${SOURCE_DIR} != ${SCRIPT_ROOT} ]]; then
|
||||
echo " Build scripts: ${SCRIPT_ROOT}"
|
||||
fi
|
||||
set -x
|
||||
source ${SCRIPT_ROOT}/kokoro/common/caplog.sh
|
||||
|
||||
#
|
||||
# Configure under $BUILD_DIR:
|
||||
#
|
||||
mkdir -p "${BUILD_DIR}"
|
||||
|
||||
(
|
||||
cd "${BUILD_DIR}"
|
||||
caplog 01_configure \
|
||||
cmake -S "${SOURCE_DIR}" \
|
||||
${CMAKE_BUILD_TYPE_FLAG} \
|
||||
${CAPLOG_CMAKE_ARGS:-}
|
||||
)
|
||||
if [[ -n ${CAPLOG_DIR:-} ]]; then
|
||||
# Save configuration logs.
|
||||
mkdir -p "${CAPLOG_DIR}/CMakeFiles"
|
||||
cp "${BUILD_DIR}"/CMakeFiles/CMake*.log "${CAPLOG_DIR}/CMakeFiles"
|
||||
fi
|
||||
|
||||
#
|
||||
# Build:
|
||||
#
|
||||
caplog 02_build \
|
||||
cmake --build "${BUILD_DIR}"
|
||||
|
||||
#
|
||||
# Run tests
|
||||
#
|
||||
(
|
||||
cd "${BUILD_DIR}"
|
||||
caplog 03_combined_testlog \
|
||||
ctest ${CAPLOG_CTEST_ARGS:-}
|
||||
)
|
||||
@@ -14,9 +14,9 @@ sudo apt-get -y install software-properties-common
|
||||
sudo add-apt-repository universe
|
||||
sudo apt-get update
|
||||
sudo apt-get -y install unzip
|
||||
wget https://github.com/protocolbuffers/protobuf/releases/download/v21.1/protoc-21.1-linux-x86_64.zip
|
||||
unzip protoc-21.1-linux-x86_64.zip bin/protoc
|
||||
mv bin/protoc ../protoc
|
||||
wget https://github.com/protocolbuffers/protobuf/releases/download/v21.0-rc1/protoc-21.0-rc-1-linux-x86_64.zip
|
||||
unzip protoc-21.0-rc-1-linux-x86_64.zip bin/protoc
|
||||
mv bin/protoc ../src/protoc
|
||||
python3 -m venv venv
|
||||
source venv/bin/activate
|
||||
python setup.py install
|
||||
@@ -30,7 +30,7 @@ make html
|
||||
cd ..
|
||||
deactivate
|
||||
|
||||
python3 -m pip install protobuf==4.21.1 gcp-docuploader==0.6.3
|
||||
python3 -m pip install protobuf==4.21.0rc1 gcp-docuploader
|
||||
|
||||
# install a json parser
|
||||
sudo apt-get -y install jq
|
||||
|
||||
143
libs/protobuf/kokoro/linux/32-bit/Dockerfile
Normal file
143
libs/protobuf/kokoro/linux/32-bit/Dockerfile
Normal file
@@ -0,0 +1,143 @@
|
||||
# This Dockerfile specifies the recipe for creating an image for the tests
|
||||
# to run in.
|
||||
#
|
||||
# We install as many test dependencies here as we can, because these setup
|
||||
# steps can be cached. They do *not* run every time we run the build.
|
||||
# The Docker image is only rebuilt when the Dockerfile (ie. this file)
|
||||
# changes.
|
||||
|
||||
# Base Dockerfile for gRPC dev images
|
||||
FROM 32bit/debian:latest
|
||||
|
||||
# Apt source for php
|
||||
RUN echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu trusty main" | tee /etc/apt/sources.list.d/various-php.list && \
|
||||
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F4FCBB07
|
||||
|
||||
# Install dependencies. We start with the basic ones require to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
ccache \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6 \
|
||||
libc6-dbg \
|
||||
libc6-dev \
|
||||
libgtest-dev \
|
||||
libtool \
|
||||
make \
|
||||
parallel \
|
||||
time \
|
||||
wget \
|
||||
unzip \
|
||||
# -- For python --
|
||||
python-setuptools \
|
||||
python-pip \
|
||||
python-dev \
|
||||
# -- For C++ benchmarks --
|
||||
cmake \
|
||||
# -- For PHP --
|
||||
php5.5 \
|
||||
php5.5-dev \
|
||||
php5.5-xml \
|
||||
php5.6 \
|
||||
php5.6-dev \
|
||||
php5.6-xml \
|
||||
php7.0 \
|
||||
php7.0-dev \
|
||||
php7.0-xml \
|
||||
phpunit \
|
||||
valgrind \
|
||||
libxml2-dev \
|
||||
&& apt-get clean
|
||||
|
||||
##################
|
||||
# PHP dependencies.
|
||||
RUN wget http://am1.php.net/get/php-5.5.38.tar.bz2/from/this/mirror
|
||||
RUN mv mirror php-5.5.38.tar.bz2
|
||||
RUN tar -xvf php-5.5.38.tar.bz2
|
||||
RUN cd php-5.5.38 && ./configure --enable-maintainer-zts --prefix=/usr/local/php-5.5-zts && \
|
||||
make && make install && make clean && cd ..
|
||||
RUN cd php-5.5.38 && make clean && ./configure --enable-bcmath --prefix=/usr/local/php-5.5 && \
|
||||
make && make install && make clean && cd ..
|
||||
|
||||
RUN wget http://am1.php.net/get/php-5.6.30.tar.bz2/from/this/mirror
|
||||
RUN mv mirror php-5.6.30.tar.bz2
|
||||
RUN tar -xvf php-5.6.30.tar.bz2
|
||||
RUN cd php-5.6.30 && ./configure --enable-maintainer-zts --prefix=/usr/local/php-5.6-zts && \
|
||||
make && make install && cd ..
|
||||
RUN cd php-5.6.30 && make clean && ./configure --enable-bcmath --prefix=/usr/local/php-5.6 && \
|
||||
make && make install && cd ..
|
||||
|
||||
RUN wget http://am1.php.net/get/php-7.0.18.tar.bz2/from/this/mirror
|
||||
RUN mv mirror php-7.0.18.tar.bz2
|
||||
RUN tar -xvf php-7.0.18.tar.bz2
|
||||
RUN cd php-7.0.18 && ./configure --enable-maintainer-zts --prefix=/usr/local/php-7.0-zts && \
|
||||
make && make install && cd ..
|
||||
RUN cd php-7.0.18 && make clean && ./configure --enable-bcmath --prefix=/usr/local/php-7.0 && \
|
||||
make && make install && cd ..
|
||||
|
||||
RUN wget http://am1.php.net/get/php-7.1.4.tar.bz2/from/this/mirror
|
||||
RUN mv mirror php-7.1.4.tar.bz2
|
||||
RUN tar -xvf php-7.1.4.tar.bz2
|
||||
RUN cd php-7.1.4 && ./configure --enable-maintainer-zts --prefix=/usr/local/php-7.1-zts && \
|
||||
make && make install && cd ..
|
||||
RUN cd php-7.1.4 && make clean && ./configure --enable-bcmath --prefix=/usr/local/php-7.1 && \
|
||||
make && make install && cd ..
|
||||
|
||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
RUN php composer-setup.php
|
||||
RUN mv composer.phar /usr/bin/composer
|
||||
RUN php -r "unlink('composer-setup.php');"
|
||||
RUN composer config -g -- disable-tls true
|
||||
RUN composer config -g -- secure-http false
|
||||
RUN cd /tmp && \
|
||||
git clone https://github.com/google/protobuf.git && \
|
||||
cd protobuf/php && \
|
||||
git reset --hard 49b44bff2b6257a119f9c6a342d6151c736586b8 && \
|
||||
ln -sfn /usr/local/php-5.5/bin/php /usr/bin/php && \
|
||||
ln -sfn /usr/local/php-5.5/bin/php-config /usr/bin/php-config && \
|
||||
ln -sfn /usr/local/php-5.5/bin/phpize /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-5.5 && \
|
||||
ln -sfn /usr/local/php-5.6/bin/php /usr/bin/php && \
|
||||
ln -sfn /usr/local/php-5.6/bin/php-config /usr/bin/php-config && \
|
||||
ln -sfn /usr/local/php-5.6/bin/phpize /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-5.6 && \
|
||||
ln -sfn /usr/local/php-7.0/bin/php /usr/bin/php && \
|
||||
ln -sfn /usr/local/php-7.0/bin/php-config /usr/bin/php-config && \
|
||||
ln -sfn /usr/local/php-7.0/bin/phpize /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-7.0 && \
|
||||
ln -sfn /usr/local/php-7.1/bin/php /usr/bin/php && \
|
||||
ln -sfn /usr/local/php-7.1/bin/php-config /usr/bin/php-config && \
|
||||
ln -sfn /usr/local/php-7.1/bin/phpize /usr/bin/phpize && \
|
||||
composer install && \
|
||||
mv vendor /usr/local/vendor-7.1
|
||||
|
||||
##################
|
||||
# Python dependencies
|
||||
|
||||
# These packages exist in apt-get, but their versions are too old, so we have
|
||||
# to get updates from pip.
|
||||
|
||||
RUN pip install pip --upgrade
|
||||
RUN pip install virtualenv tox yattag
|
||||
|
||||
##################
|
||||
# Prepare ccache
|
||||
|
||||
RUN ln -s /usr/bin/ccache /usr/local/bin/gcc
|
||||
RUN ln -s /usr/bin/ccache /usr/local/bin/g++
|
||||
RUN ln -s /usr/bin/ccache /usr/local/bin/cc
|
||||
RUN ln -s /usr/bin/ccache /usr/local/bin/c++
|
||||
RUN ln -s /usr/bin/ccache /usr/local/bin/clang
|
||||
RUN ln -s /usr/bin/ccache /usr/local/bin/clang++
|
||||
|
||||
# Define the default command.
|
||||
CMD ["bash"]
|
||||
@@ -4,20 +4,15 @@
|
||||
# running the "pull request 32" project:
|
||||
#
|
||||
# This script selects a specific Dockerfile (for building a Docker image) and
|
||||
# a script to run inside that image.
|
||||
|
||||
set -ex
|
||||
# a script to run inside that image. Then we delegate to the general
|
||||
# build_and_run_docker.sh script.
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
GIT_REPO_ROOT=$(pwd)
|
||||
|
||||
CONTAINER_IMAGE=gcr.io/protobuf-build/php/32bit@sha256:824cbdff02ee543eb69ee4b02c8c58cc7887f70f49e41725a35765d92a898b4f
|
||||
|
||||
git submodule update --init --recursive
|
||||
|
||||
docker run \
|
||||
"$@" \
|
||||
-v $GIT_REPO_ROOT:/workspace \
|
||||
$CONTAINER_IMAGE \
|
||||
bash -l "/workspace/kokoro/linux/32-bit/test_php.sh"
|
||||
export DOCKERHUB_ORGANIZATION=protobuftesting
|
||||
export DOCKERFILE_DIR=kokoro/linux/dockerfile/test/php_32bit
|
||||
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh
|
||||
export OUTPUT_DIR=testoutput
|
||||
export TEST_SET="php_all_32"
|
||||
./kokoro/linux/build_and_run_docker.sh
|
||||
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/32-bit/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/32-bit/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -eux
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
use_php() {
|
||||
VERSION=$1
|
||||
export PATH=/usr/local/php-${VERSION}/bin:$PATH
|
||||
}
|
||||
|
||||
build_php() {
|
||||
use_php $1
|
||||
pushd php
|
||||
rm -rf vendor
|
||||
php -v
|
||||
php -m
|
||||
composer update
|
||||
composer test
|
||||
popd
|
||||
}
|
||||
|
||||
test_php_c() {
|
||||
pushd php
|
||||
rm -rf vendor
|
||||
php -v
|
||||
php -m
|
||||
composer update
|
||||
composer test_c
|
||||
popd
|
||||
}
|
||||
|
||||
build_php_c() {
|
||||
use_php $1
|
||||
test_php_c
|
||||
}
|
||||
|
||||
mkdir -p build
|
||||
pushd build
|
||||
cmake ..
|
||||
cmake --build . -- -j20
|
||||
ctest --verbose --parallel 20
|
||||
export PROTOC=$(pwd)/protoc
|
||||
popd
|
||||
|
||||
build_php 7.0
|
||||
build_php 7.1
|
||||
build_php 7.4
|
||||
build_php_c 7.0
|
||||
build_php_c 7.1
|
||||
build_php_c 7.4
|
||||
build_php_c 7.1-zts
|
||||
build_php_c 7.2-zts
|
||||
build_php_c 7.5-zts
|
||||
|
||||
# Cleanup after CMake build
|
||||
rm -rf build
|
||||
@@ -5,9 +5,12 @@
|
||||
|
||||
set -ex
|
||||
|
||||
mkdir -p cmake/crossbuild_aarch64
|
||||
cd cmake/crossbuild_aarch64
|
||||
|
||||
# the build commands are expected to run under dockcross docker image
|
||||
# where the CC, CXX and other toolchain variables already point to the crosscompiler
|
||||
cmake .
|
||||
cmake ..
|
||||
make -j8
|
||||
|
||||
# check that the resulting test binary is indeed an aarch64 ELF
|
||||
|
||||
@@ -13,11 +13,7 @@ else
|
||||
fi
|
||||
|
||||
# Pin the dockcross image since newer versions of the image break the build
|
||||
# We use an older version of dockcross image that has gcc4.9.4 because it was built
|
||||
# before https://github.com/dockcross/dockcross/pull/449
|
||||
# Thanks to that, wheel build with this image aren't actually
|
||||
# compliant with manylinux2014, but only with manylinux_2_24
|
||||
PINNED_DOCKCROSS_IMAGE_VERSION=dockcross/manylinux2014-aarch64:20200929-608e6ac
|
||||
PINNED_DOCKCROSS_IMAGE_VERSION=dockcross/manylinux2014-aarch64:20210803-41e5c69
|
||||
|
||||
# running dockcross image without any arguments generates a wrapper
|
||||
# scripts that can be used to run commands under the dockcross image
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
|
||||
set -ex
|
||||
|
||||
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -Dprotobuf_WITH_ZLIB=0 -Dprotobuf_BUILD_TESTS=OFF .
|
||||
./autogen.sh
|
||||
CXXFLAGS="-fPIC -g -O2" ./configure --host=aarch64
|
||||
make -j8
|
||||
|
||||
@@ -8,16 +8,13 @@ set -ex
|
||||
|
||||
PYTHON="/opt/python/cp38-cp38/bin/python"
|
||||
|
||||
# Initialize any submodules.
|
||||
git submodule update --init --recursive
|
||||
|
||||
# Build protoc and libprotobuf
|
||||
cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON -Dprotobuf_WITH_ZLIB=0 -Dprotobuf_BUILD_TESTS=OFF .
|
||||
./autogen.sh
|
||||
CXXFLAGS="-fPIC -g -O2" ./configure --host=aarch64
|
||||
make -j8
|
||||
|
||||
# create a simple shell wrapper that runs crosscompiled protoc under qemu
|
||||
echo '#!/bin/bash' >protoc_qemu_wrapper.sh
|
||||
echo 'exec qemu-aarch64 "../protoc" "$@"' >>protoc_qemu_wrapper.sh
|
||||
echo 'exec qemu-aarch64 "../src/protoc" "$@"' >>protoc_qemu_wrapper.sh
|
||||
chmod ugo+x protoc_qemu_wrapper.sh
|
||||
|
||||
# PROTOC variable is by build_py step that runs under ./python directory
|
||||
|
||||
@@ -7,7 +7,7 @@ cd $(dirname $0)/../../..
|
||||
cd python
|
||||
|
||||
PYTHON="/opt/python/cp38-cp38/bin/python"
|
||||
${PYTHON} -m pip install --user pytest auditwheel numpy
|
||||
${PYTHON} -m pip install --user pytest auditwheel
|
||||
|
||||
# check that we are really using aarch64 python
|
||||
(${PYTHON} -c 'import sysconfig; print(sysconfig.get_platform())' | grep -q "linux-aarch64") || (echo "Wrong python platform, needs to be aarch64 python."; exit 1)
|
||||
@@ -16,7 +16,7 @@ ${PYTHON} -m pip install --user pytest auditwheel numpy
|
||||
# we've built the python extension previously with --inplace option
|
||||
# so we can just discover all the unittests and run them directly under
|
||||
# the python/ directory.
|
||||
LD_LIBRARY_PATH=. PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp ${PYTHON} -m pytest google/protobuf
|
||||
LD_LIBRARY_PATH=../src/.libs PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=cpp ${PYTHON} -m pytest google/protobuf
|
||||
|
||||
# step 2: run auditwheel show to check that the wheel is manylinux2014 compatible.
|
||||
# auditwheel needs to run on wheel's target platform (or under an emulator)
|
||||
|
||||
@@ -24,4 +24,4 @@ kokoro/linux/aarch64/dockcross_helpers/run_dockcross_manylinux2014_aarch64.sh ko
|
||||
# otherwise the UID would be homeless under the docker container and pip install wouldn't work. For simplicity,
|
||||
# we just run map the user's home to a throwaway temporary directory
|
||||
|
||||
docker run $DOCKER_TTY_ARGS --rm --user "$(id -u):$(id -g)" -e "HOME=/home/fake-user" -e "PROTOC=/work/protoc" -v "$(mktemp -d):/home/fake-user" -v "$(pwd)":/work -w /work arm64v8/ruby:2.7.3-buster kokoro/linux/aarch64/ruby_build_and_run_tests_with_qemu_aarch64.sh
|
||||
docker run $DOCKER_TTY_ARGS --rm --user "$(id -u):$(id -g)" -e "HOME=/home/fake-user" -v "$(mktemp -d):/home/fake-user" -v "$(pwd)":/work -w /work arm64v8/ruby:2.7.3-buster kokoro/linux/aarch64/ruby_build_and_run_tests_with_qemu_aarch64.sh
|
||||
@@ -1,60 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
if [[ -z "${CONTAINER_IMAGE}" ]]; then
|
||||
CONTAINER_IMAGE=gcr.io/protobuf-build/bazel/linux@sha256:2bfd061284eff8234f2fcca16d71d43c69ccf3a22206628b54c204a6a9aac277
|
||||
fi
|
||||
|
||||
cd $(dirname $0)/../..
|
||||
GIT_REPO_ROOT=`pwd`
|
||||
|
||||
ENVS=()
|
||||
|
||||
# Check for specific versions pinned to the docker image. In these cases we
|
||||
# want to forward the environment variable to tests, so that they can verify
|
||||
# that the correct version is being picked up by Bazel.
|
||||
ENVS+=("--test_env=KOKORO_JAVA_VERSION")
|
||||
ENVS+=("--test_env=KOKORO_PYTHON_VERSION")
|
||||
ENVS+=("--test_env=KOKORO_RUBY_VERSION")
|
||||
|
||||
if [ -n "$BAZEL_ENV" ]; then
|
||||
for env in $BAZEL_ENV; do
|
||||
ENVS+="--action_env=${env}"
|
||||
done
|
||||
fi
|
||||
|
||||
function run {
|
||||
local CONFIG=$1
|
||||
local BAZEL_CONFIG=$2
|
||||
|
||||
tmpfile=$(mktemp -u)
|
||||
|
||||
rm -rf $GIT_REPO_ROOT/bazel-out $GIT_REPO_ROOT/bazel-bin
|
||||
rm -rf $GIT_REPO_ROOT/logs
|
||||
|
||||
docker run \
|
||||
--cidfile $tmpfile \
|
||||
--cap-add=SYS_PTRACE \
|
||||
-v $GIT_REPO_ROOT:/workspace \
|
||||
$CONTAINER_IMAGE \
|
||||
test \
|
||||
$(${GIT_REPO_ROOT}/kokoro/common/bazel_flags.sh) \
|
||||
${ENVS[@]} \
|
||||
$PLATFORM_CONFIG \
|
||||
$BAZEL_CONFIG \
|
||||
$BAZEL_EXTRA_FLAGS \
|
||||
$BAZEL_TARGETS
|
||||
|
||||
# Save logs for Kokoro
|
||||
docker cp \
|
||||
`cat $tmpfile`:/workspace/logs $KOKORO_ARTIFACTS_DIR/$CONFIG
|
||||
}
|
||||
|
||||
if [ -n "$BAZEL_CONFIGS" ]; then
|
||||
for config in $BAZEL_CONFIGS; do
|
||||
run $config "--config=$config"
|
||||
done
|
||||
else
|
||||
run
|
||||
fi
|
||||
47
libs/protobuf/kokoro/linux/bazel/build.sh
Executable file
47
libs/protobuf/kokoro/linux/bazel/build.sh
Executable file
@@ -0,0 +1,47 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Build file to set up and run tests
|
||||
set -ex
|
||||
|
||||
# Install Bazel 4.0.0.
|
||||
use_bazel.sh 4.0.0
|
||||
bazel version
|
||||
|
||||
# Print bazel testlogs to stdout when tests failed.
|
||||
function print_test_logs {
|
||||
# TODO(yannic): Only print logs of failing tests.
|
||||
testlogs_dir=$(bazel info bazel-testlogs)
|
||||
testlogs=$(find "${testlogs_dir}" -name "*.log")
|
||||
for log in $testlogs; do
|
||||
cat "${log}"
|
||||
done
|
||||
}
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
git submodule update --init --recursive
|
||||
|
||||
# Disabled for now, re-enable if appropriate.
|
||||
# //:build_files_updated_unittest \
|
||||
|
||||
trap print_test_logs EXIT
|
||||
bazel test -k --copt=-Werror --host_copt=-Werror \
|
||||
//build_defs:all \
|
||||
//java:tests \
|
||||
//:protoc \
|
||||
//:protobuf \
|
||||
//:protobuf_python \
|
||||
//:protobuf_test
|
||||
trap - EXIT
|
||||
|
||||
pushd examples
|
||||
bazel build //...
|
||||
popd
|
||||
|
||||
# Verify that we can build successfully from generated tar files.
|
||||
./autogen.sh && ./configure && make -j$(nproc) dist
|
||||
DIST=`ls *.tar.gz`
|
||||
tar -xf $DIST
|
||||
cd ${DIST//.tar.gz}
|
||||
bazel build //:protobuf //:protobuf_java
|
||||
@@ -1,31 +0,0 @@
|
||||
# Default setup for the all of our Kokoro builds.
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/bazel.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
env_vars {
|
||||
key: "CONTAINER_IMAGE"
|
||||
value: "gcr.io/protobuf-build/bazel/linux-san:b6bfa3bb505e83f062af0cb0ed23abf1e89b9edb"
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_TARGETS"
|
||||
value: "//src/... @com_google_protobuf_examples//..."
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_CONFIGS"
|
||||
value: "opt dbg asan kokoro-msan tsan ubsan"
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_EXTRA_FLAGS"
|
||||
value: "--distinct_host_configuration=false"
|
||||
}
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,5 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/bazel/build.sh"
|
||||
timeout_mins: 15
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/bazel/build.sh"
|
||||
timeout_mins: 15
|
||||
|
||||
87
libs/protobuf/kokoro/linux/bazel_distcheck/build.sh
Executable file
87
libs/protobuf/kokoro/linux/bazel_distcheck/build.sh
Executable file
@@ -0,0 +1,87 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Build file to set up and run tests using bazel-build dist archive
|
||||
#
|
||||
# Note that the builds use WORKSPACE to fetch external sources, not
|
||||
# git submodules.
|
||||
|
||||
set -eux
|
||||
|
||||
BUILD_ONLY_TARGETS=(
|
||||
//pkg:all
|
||||
//:protoc
|
||||
//:protobuf
|
||||
//:protobuf_python
|
||||
)
|
||||
|
||||
TEST_TARGETS=(
|
||||
//build_defs:all
|
||||
//conformance:all
|
||||
//java:tests
|
||||
//:protobuf_test
|
||||
)
|
||||
|
||||
use_bazel.sh 5.0.0 || true
|
||||
bazel version
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
# Construct temp directory for running the dist build.
|
||||
# If you want to run locally and keep the build dir, create a directory
|
||||
# and pass it in the DIST_WORK_ROOT env var.
|
||||
if [[ -z ${DIST_WORK_ROOT:-} ]]; then
|
||||
: ${DIST_WORK_ROOT:=$(mktemp -d)}
|
||||
function dist_cleanup() {
|
||||
rm -rf ${DIST_WORK_ROOT}
|
||||
}
|
||||
trap dist_cleanup EXIT
|
||||
fi
|
||||
|
||||
# Let Bazel share the distdir.
|
||||
TMP_DISTDIR=${DIST_WORK_ROOT}/bazel-distdir
|
||||
mkdir -p ${TMP_DISTDIR}
|
||||
|
||||
# Build distribution archive
|
||||
date
|
||||
bazel fetch --distdir=${TMP_DISTDIR} //pkg:dist_all_tar
|
||||
bazel build --distdir=${TMP_DISTDIR} //pkg:dist_all_tar
|
||||
DIST_ARCHIVE=$(readlink $(bazel info bazel-bin)/pkg/dist_all_tar.tar.gz)
|
||||
bazel shutdown
|
||||
|
||||
# The `pkg_tar` rule emits a symlink based on the rule name. The actual
|
||||
# file is named with the current version.
|
||||
date
|
||||
echo "Resolved archive path: ${DIST_ARCHIVE}"
|
||||
|
||||
# Extract the dist archive.
|
||||
date
|
||||
DIST_WORKSPACE=${DIST_WORK_ROOT}/protobuf
|
||||
mkdir -p ${DIST_WORKSPACE}
|
||||
tar -C ${DIST_WORKSPACE} --strip-components=1 -axf ${DIST_ARCHIVE}
|
||||
|
||||
# Perform build steps in the extracted dist sources.
|
||||
|
||||
cd ${DIST_WORKSPACE}
|
||||
FAILED=false
|
||||
|
||||
date
|
||||
bazel fetch --distdir=${TMP_DISTDIR} "${BUILD_ONLY_TARGETS[@]}" "${TEST_TARGETS[@]}"
|
||||
|
||||
date
|
||||
bazel build --distdir=${TMP_DISTDIR} -k \
|
||||
"${BUILD_ONLY_TARGETS[@]}" || FAILED=true
|
||||
|
||||
date
|
||||
bazel test --distdir=${TMP_DISTDIR} --test_output=errors -k \
|
||||
"${TEST_TARGETS[@]}" || FAILED=true
|
||||
|
||||
date
|
||||
cd examples
|
||||
bazel build --distdir=${TMP_DISTDIR} //... || FAILED=true
|
||||
|
||||
if ${FAILED}; then
|
||||
echo FAILED
|
||||
exit 1
|
||||
fi
|
||||
echo PASS
|
||||
@@ -0,0 +1,5 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/bazel_distcheck/build.sh"
|
||||
timeout_mins: 15
|
||||
5
libs/protobuf/kokoro/linux/bazel_distcheck/presubmit.cfg
Normal file
5
libs/protobuf/kokoro/linux/bazel_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/bazel_distcheck/build.sh"
|
||||
timeout_mins: 15
|
||||
18
libs/protobuf/kokoro/linux/benchmark/build.sh
Executable file
18
libs/protobuf/kokoro/linux/benchmark/build.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This is the top-level script we give to Kokoro as the entry point for
|
||||
# running the "pull request" project:
|
||||
#
|
||||
# This script selects a specific Dockerfile (for building a Docker image) and
|
||||
# a script to run inside that image. Then we delegate to the general
|
||||
# build_and_run_docker.sh script.
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
export DOCKERHUB_ORGANIZATION=protobuftesting
|
||||
export DOCKERFILE_DIR=kokoro/linux/dockerfile/test/java_stretch
|
||||
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh
|
||||
export OUTPUT_DIR=testoutput
|
||||
export TEST_SET="benchmark"
|
||||
./kokoro/linux/build_and_run_docker.sh
|
||||
@@ -1,8 +1,8 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/32-bit/build.sh"
|
||||
timeout_mins: 120
|
||||
build_file: "protobuf/kokoro/linux/benchmark/build.sh"
|
||||
timeout_mins: 240
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
99
libs/protobuf/kokoro/linux/benchmark/run.sh
Executable file
99
libs/protobuf/kokoro/linux/benchmark/run.sh
Executable file
@@ -0,0 +1,99 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
set -ex
|
||||
|
||||
export OUTPUT_DIR=testoutput
|
||||
repo_root="$(pwd)"
|
||||
|
||||
# TODO(jtattermusch): Add back support for benchmarking with tcmalloc for C++ and python.
|
||||
# This feature was removed since it used to use tcmalloc from https://github.com/gperftools/gperftools.git
|
||||
# which is very outdated. See https://github.com/protocolbuffers/protobuf/issues/8725.
|
||||
|
||||
# download datasets for benchmark
|
||||
pushd benchmarks
|
||||
datasets=$(for file in $(find . -type f -name "dataset.*.pb" -not -path "./tmp/*"); do echo "$(pwd)/$file"; done | xargs)
|
||||
echo $datasets
|
||||
popd
|
||||
|
||||
# build Python protobuf
|
||||
./autogen.sh
|
||||
./configure CXXFLAGS="-fPIC -O2"
|
||||
make -j8
|
||||
pushd python
|
||||
python3 -m venv env
|
||||
source env/bin/activate
|
||||
python3 setup.py build --cpp_implementation
|
||||
pip3 install --install-option="--cpp_implementation" .
|
||||
popd
|
||||
|
||||
# build and run Python benchmark
|
||||
# We do this before building protobuf C++ since C++ build
|
||||
# will rewrite some libraries used by protobuf python.
|
||||
pushd benchmarks
|
||||
make python-pure-python-benchmark
|
||||
make python-cpp-reflection-benchmark
|
||||
make -j8 python-cpp-generated-code-benchmark
|
||||
echo "[" > tmp/python_result.json
|
||||
echo "benchmarking pure python..."
|
||||
./python-pure-python-benchmark --json --behavior_prefix="pure-python-benchmark" $datasets >> tmp/python_result.json
|
||||
echo "," >> "tmp/python_result.json"
|
||||
echo "benchmarking python cpp reflection..."
|
||||
env LD_LIBRARY_PATH="${repo_root}/src/.libs" ./python-cpp-reflection-benchmark --json --behavior_prefix="cpp-reflection-benchmark" $datasets >> tmp/python_result.json
|
||||
echo "," >> "tmp/python_result.json"
|
||||
echo "benchmarking python cpp generated code..."
|
||||
env LD_LIBRARY_PATH="${repo_root}/src/.libs" ./python-cpp-generated-code-benchmark --json --behavior_prefix="cpp-generated-code-benchmark" $datasets >> tmp/python_result.json
|
||||
echo "]" >> "tmp/python_result.json"
|
||||
popd
|
||||
|
||||
# build CPP protobuf
|
||||
./configure
|
||||
make clean && make -j8
|
||||
|
||||
pushd java
|
||||
mvn package -B -Dmaven.test.skip=true
|
||||
popd
|
||||
|
||||
pushd benchmarks
|
||||
|
||||
# build and run C++ benchmark
|
||||
# "make clean" deletes the contents of the tmp/ directory, so we move it elsewhere and then restore it once build is done.
|
||||
# TODO(jtattermusch): find a less clumsy way of protecting python_result.json contents
|
||||
mv tmp/python_result.json . && make clean && make -j8 cpp-benchmark && mv python_result.json tmp
|
||||
echo "benchmarking cpp..."
|
||||
env ./cpp-benchmark --benchmark_min_time=5.0 --benchmark_out_format=json --benchmark_out="tmp/cpp_result.json" $datasets
|
||||
|
||||
# TODO(jtattermusch): add benchmarks for https://github.com/protocolbuffers/protobuf-go.
|
||||
# The original benchmarks for https://github.com/golang/protobuf were removed
|
||||
# because:
|
||||
# * they were broken and haven't been producing results for a long time
|
||||
# * the https://github.com/golang/protobuf implementation has been superseded by
|
||||
# https://github.com/protocolbuffers/protobuf-go
|
||||
|
||||
# build and run java benchmark (java 11 is required)
|
||||
make java-benchmark
|
||||
echo "benchmarking java..."
|
||||
./java-benchmark -Cresults.file.options.file="tmp/java_result.json" $datasets
|
||||
|
||||
# TODO(jtattermusch): re-enable JS benchmarks once https://github.com/protocolbuffers/protobuf/issues/8747 is fixed.
|
||||
# build and run js benchmark
|
||||
# make js-benchmark
|
||||
# echo "benchmarking js..."
|
||||
# ./js-benchmark $datasets --json_output=$(pwd)/tmp/node_result.json
|
||||
|
||||
# TODO(jtattermusch): add php-c-benchmark. Currently its build is broken.
|
||||
|
||||
# persist raw the results in the build job log (for better debuggability)
|
||||
cat tmp/cpp_result.json
|
||||
cat tmp/java_result.json
|
||||
cat tmp/python_result.json
|
||||
|
||||
# print the postprocessed results to the build job log
|
||||
# TODO(jtattermusch): re-enable uploading results to bigquery (it is currently broken)
|
||||
make python_add_init
|
||||
env LD_LIBRARY_PATH="${repo_root}/src/.libs" python3 -m util.result_parser \
|
||||
-cpp="../tmp/cpp_result.json" -java="../tmp/java_result.json" -python="../tmp/python_result.json"
|
||||
popd
|
||||
|
||||
64
libs/protobuf/kokoro/linux/build_and_run_docker.sh
Executable file
64
libs/protobuf/kokoro/linux/build_and_run_docker.sh
Executable file
@@ -0,0 +1,64 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Builds docker image and runs a command under it.
|
||||
# This is a generic script that is configured with the following variables:
|
||||
#
|
||||
# DOCKERHUB_ORGANIZATION - The organization on docker hub storing the
|
||||
# Dockerfile.
|
||||
# DOCKERFILE_DIR - Directory in which Dockerfile file is located.
|
||||
# DOCKER_RUN_SCRIPT - Script to run under docker (relative to protobuf repo root)
|
||||
# OUTPUT_DIR - Directory that will be copied from inside docker after finishing.
|
||||
# $@ - Extra args to pass to docker run
|
||||
|
||||
set -ex
|
||||
|
||||
cd $(dirname $0)/../..
|
||||
git_root=$(pwd)
|
||||
cd -
|
||||
|
||||
# Use image name based on Dockerfile sha1
|
||||
if [ -z "$DOCKERHUB_ORGANIZATION" ]
|
||||
then
|
||||
DOCKERHUB_ORGANIZATION=grpctesting/protobuf
|
||||
DOCKER_IMAGE_NAME=${DOCKERHUB_ORGANIZATION}_$(sha1sum $DOCKERFILE_DIR/Dockerfile | cut -f1 -d\ )
|
||||
else
|
||||
# TODO(teboring): Remove this when all tests have been migrated to separate
|
||||
# docker images.
|
||||
DOCKERFILE_PREFIX=$(basename $DOCKERFILE_DIR)
|
||||
DOCKER_IMAGE_NAME=${DOCKERHUB_ORGANIZATION}/${DOCKERFILE_PREFIX}_$(sha1sum $DOCKERFILE_DIR/Dockerfile | cut -f1 -d\ )
|
||||
fi
|
||||
|
||||
# Pull dockerimage from Dockerhub. This sometimes fails intermittently, so we
|
||||
# keep trying until we succeed.
|
||||
until docker pull $DOCKER_IMAGE_NAME; do sleep 10; done
|
||||
|
||||
# Ensure existence of ccache directory
|
||||
CCACHE_DIR=/tmp/protobuf-ccache
|
||||
mkdir -p $CCACHE_DIR
|
||||
|
||||
# Choose random name for docker container
|
||||
CONTAINER_NAME="build_and_run_docker_$(uuidgen)"
|
||||
|
||||
echo $git_root
|
||||
|
||||
# Run command inside docker
|
||||
docker run \
|
||||
"$@" \
|
||||
-e CCACHE_DIR=$CCACHE_DIR \
|
||||
-e KOKORO_BUILD_NUMBER=$KOKORO_BUILD_NUMBER \
|
||||
-e KOKORO_BUILD_ID=$KOKORO_BUILD_ID \
|
||||
-e EXTERNAL_GIT_ROOT="/var/local/kokoro/protobuf" \
|
||||
-e TEST_SET="$TEST_SET" \
|
||||
-v "$git_root:/var/local/kokoro/protobuf:ro" \
|
||||
-v $CCACHE_DIR:$CCACHE_DIR \
|
||||
-w /var/local/git/protobuf \
|
||||
--name=$CONTAINER_NAME \
|
||||
$DOCKER_IMAGE_NAME \
|
||||
bash -l "/var/local/kokoro/protobuf/$DOCKER_RUN_SCRIPT" || FAILED="true"
|
||||
|
||||
# remove the container, possibly killing it first
|
||||
docker rm -f $CONTAINER_NAME || true
|
||||
|
||||
[ -z "$FAILED" ] || {
|
||||
exit 1
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Build file to set up and run tests using CMake
|
||||
|
||||
set -eux
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
GIT_REPO_ROOT=`pwd`
|
||||
|
||||
CONTAINER_IMAGE=gcr.io/protobuf-build/cmake/linux@sha256:79e6ed9d7f3f8e56167a3309a521e5b7e6a212bfb19855c65ee1cbb6f9099671
|
||||
|
||||
# Update git submodules
|
||||
git submodule update --init --recursive
|
||||
|
||||
tmpfile=$(mktemp -u)
|
||||
|
||||
docker run \
|
||||
--cidfile $tmpfile \
|
||||
-v $GIT_REPO_ROOT:/workspace \
|
||||
$CONTAINER_IMAGE \
|
||||
/test.sh -Dprotobuf_BUILD_CONFORMANCE=ON -Dprotobuf_BUILD_EXAMPLES=ON
|
||||
|
||||
# Save logs for Kokoro
|
||||
docker cp \
|
||||
`cat $tmpfile`:/workspace/logs $KOKORO_ARTIFACTS_DIR
|
||||
@@ -1,11 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/cmake/build.sh"
|
||||
timeout_mins: 1440
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
@@ -1 +0,0 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
@@ -1,30 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Build file to build, install, and test using CMake.
|
||||
|
||||
set -eux
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
GIT_REPO_ROOT=`pwd`
|
||||
|
||||
CONTAINER_IMAGE=gcr.io/protobuf-build/cmake/linux@sha256:79e6ed9d7f3f8e56167a3309a521e5b7e6a212bfb19855c65ee1cbb6f9099671
|
||||
|
||||
# Update git submodules
|
||||
git submodule update --init --recursive
|
||||
|
||||
tmpfile=$(mktemp -u)
|
||||
|
||||
docker run \
|
||||
--cidfile $tmpfile \
|
||||
-v $GIT_REPO_ROOT:/workspace \
|
||||
$CONTAINER_IMAGE \
|
||||
"/install.sh && /test.sh \
|
||||
-Dprotobuf_REMOVE_INSTALLED_HEADERS=ON \
|
||||
-Dprotobuf_BUILD_PROTOBUF_BINARIES=OFF \
|
||||
-Dprotobuf_BUILD_CONFORMANCE=ON"
|
||||
|
||||
|
||||
# Save logs for Kokoro
|
||||
docker cp \
|
||||
`cat $tmpfile`:/workspace/logs $KOKORO_ARTIFACTS_DIR
|
||||
@@ -1,11 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/cmake_install/build.sh"
|
||||
timeout_mins: 1440
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
@@ -1 +0,0 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Build file to set up and run tests using CMake with the Ninja generator.
|
||||
|
||||
set -eux
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
GIT_REPO_ROOT=`pwd`
|
||||
|
||||
CONTAINER_IMAGE=gcr.io/protobuf-build/cmake/linux@sha256:79e6ed9d7f3f8e56167a3309a521e5b7e6a212bfb19855c65ee1cbb6f9099671
|
||||
|
||||
# Update git submodules
|
||||
git submodule update --init --recursive
|
||||
|
||||
tmpfile=$(mktemp -u)
|
||||
|
||||
docker run \
|
||||
--cidfile $tmpfile \
|
||||
-v $GIT_REPO_ROOT:/workspace \
|
||||
$CONTAINER_IMAGE \
|
||||
/test.sh -G Ninja -Dprotobuf_BUILD_CONFORMANCE=ON
|
||||
|
||||
# Save logs for Kokoro
|
||||
docker cp \
|
||||
`cat $tmpfile`:/workspace/logs $KOKORO_ARTIFACTS_DIR
|
||||
@@ -1,11 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/cmake_ninja/build.sh"
|
||||
timeout_mins: 1440
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
@@ -1 +0,0 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
@@ -1,26 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Build file to set up and run tests via CMake using shared libraries
|
||||
|
||||
set -eux
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
GIT_REPO_ROOT=`pwd`
|
||||
|
||||
CONTAINER_IMAGE=gcr.io/protobuf-build/cmake/linux@sha256:79e6ed9d7f3f8e56167a3309a521e5b7e6a212bfb19855c65ee1cbb6f9099671
|
||||
|
||||
# Update git submodules
|
||||
git submodule update --init --recursive
|
||||
|
||||
tmpfile=$(mktemp -u)
|
||||
|
||||
docker run \
|
||||
--cidfile $tmpfile \
|
||||
-v $GIT_REPO_ROOT:/workspace \
|
||||
$CONTAINER_IMAGE \
|
||||
/test.sh -Dprotobuf_BUILD_CONFORMANCE=ON -Dprotobuf_BUILD_SHARED_LIBS=ON
|
||||
|
||||
# Save logs for Kokoro
|
||||
docker cp \
|
||||
`cat $tmpfile`:/workspace/logs $KOKORO_ARTIFACTS_DIR
|
||||
@@ -1,11 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/cmake/build.sh"
|
||||
timeout_mins: 1440
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
@@ -1 +0,0 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
11
libs/protobuf/kokoro/linux/cpp_aarch64/build.sh
Executable file
11
libs/protobuf/kokoro/linux/cpp_aarch64/build.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This is the top-level script we give to Kokoro as the entry point for
|
||||
# running the "continuous" and "presubmit" jobs.
|
||||
|
||||
set -ex
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
kokoro/linux/aarch64/test_cpp_aarch64.sh
|
||||
@@ -1,21 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/bazel.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
env_vars {
|
||||
key: "CONTAINER_IMAGE"
|
||||
value: "gcr.io/protobuf-build/emulation/linux:aarch64-4e847d7a01c1792471b6dd985ab0bf2677332e6f"
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_TARGETS"
|
||||
value: "//src/..."
|
||||
}
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,5 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/cpp_aarch64/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/cpp_aarch64/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
25
libs/protobuf/kokoro/linux/cpp_distcheck/build.sh
Executable file
25
libs/protobuf/kokoro/linux/cpp_distcheck/build.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Build file to set up and run tests
|
||||
|
||||
set -ex # exit immediately on error
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
./tests.sh cpp_distcheck
|
||||
|
||||
# Run tests under release docker image.
|
||||
DOCKER_IMAGE_NAME=protobuf/protoc_$(sha1sum protoc-artifacts/Dockerfile | cut -f1 -d " ")
|
||||
until docker pull $DOCKER_IMAGE_NAME; do sleep 10; done
|
||||
|
||||
docker run -v $(pwd):/var/local/protobuf --rm $DOCKER_IMAGE_NAME \
|
||||
bash -l /var/local/protobuf/tests.sh cpp || FAILED="true"
|
||||
|
||||
# This directory is owned by root. We need to delete it, because otherwise
|
||||
# Kokoro will attempt to rsync it and fail with a permission error.
|
||||
rm -rf src/core
|
||||
|
||||
if [ "$FAILED" = "true" ]; then
|
||||
exit 1
|
||||
fi
|
||||
@@ -1,5 +1,5 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/windows/cmake_shared/build.bat"
|
||||
build_file: "protobuf/kokoro/linux/cpp_distcheck/build.sh"
|
||||
timeout_mins: 1440
|
||||
@@ -1,5 +1,5 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/windows/cmake_install/build.bat"
|
||||
build_file: "protobuf/kokoro/linux/cpp_distcheck/build.sh"
|
||||
timeout_mins: 1440
|
||||
13
libs/protobuf/kokoro/linux/cpp_tcmalloc/build.sh
Executable file
13
libs/protobuf/kokoro/linux/cpp_tcmalloc/build.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Build file to set up and run tests
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
export DOCKERHUB_ORGANIZATION=protobuftesting
|
||||
export DOCKERFILE_DIR=kokoro/linux/dockerfile/test/cpp_tcmalloc
|
||||
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh
|
||||
export OUTPUT_DIR=testoutput
|
||||
export TEST_SET="cpp_tcmalloc"
|
||||
./kokoro/linux/build_and_run_docker.sh
|
||||
@@ -1,21 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/bazel.sh"
|
||||
timeout_mins: 1440
|
||||
|
||||
env_vars {
|
||||
key: "CONTAINER_IMAGE"
|
||||
value: "gcr.io/protobuf-build/tcmalloc/linux:64e8944e4f18d7d6c9649112a8a93be57e693cd8"
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_TARGETS"
|
||||
value: "//src/..."
|
||||
}
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,5 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/cpp_tcmalloc/build.sh"
|
||||
timeout_mins: 1440
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/cpp_tcmalloc/build.sh"
|
||||
timeout_mins: 1440
|
||||
|
||||
18
libs/protobuf/kokoro/linux/csharp/build.sh
Executable file
18
libs/protobuf/kokoro/linux/csharp/build.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This is the top-level script we give to Kokoro as the entry point for
|
||||
# running the "pull request" project:
|
||||
#
|
||||
# This script selects a specific Dockerfile (for building a Docker image) and
|
||||
# a script to run inside that image. Then we delegate to the general
|
||||
# build_and_run_docker.sh script.
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
export DOCKERHUB_ORGANIZATION=protobuftesting
|
||||
export DOCKERFILE_DIR=kokoro/linux/dockerfile/test/csharp
|
||||
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh
|
||||
export OUTPUT_DIR=testoutput
|
||||
export TEST_SET="csharp"
|
||||
./kokoro/linux/build_and_run_docker.sh
|
||||
@@ -1,27 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/bazel.sh"
|
||||
timeout_mins: 1440
|
||||
|
||||
env_vars {
|
||||
key: "CONTAINER_IMAGE"
|
||||
value: "gcr.io/protobuf-build/csharp/linux:3.1.415-6.0.100-6bbe70439ba5b0404bb12662cebc0296909389fa"
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_TARGETS"
|
||||
value: "//csharp/..."
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_EXTRA_FLAGS"
|
||||
value: "--action_env=DOTNET_CLI_TELEMETRY_OPTOUT=1 "
|
||||
"--test_env=DOTNET_CLI_HOME=/home/bazel"
|
||||
}
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,5 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# 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
|
||||
|
||||
@@ -1 +1,5 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# 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
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/csharp_aarch64/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/csharp_aarch64/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/csharp_aarch64/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
15
libs/protobuf/kokoro/linux/dist_install/build.sh
Executable file
15
libs/protobuf/kokoro/linux/dist_install/build.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Build file to set up and run tests
|
||||
|
||||
set -ex # exit immediately on error
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
export DOCKERHUB_ORGANIZATION=protobuftesting
|
||||
export DOCKERFILE_DIR=kokoro/linux/dockerfile/test/java_stretch
|
||||
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh
|
||||
export OUTPUT_DIR=testoutput
|
||||
export TEST_SET="dist_install"
|
||||
./kokoro/linux/build_and_run_docker.sh
|
||||
5
libs/protobuf/kokoro/linux/dist_install/continuous.cfg
Normal file
5
libs/protobuf/kokoro/linux/dist_install/continuous.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/dist_install/build.sh"
|
||||
timeout_mins: 1440
|
||||
5
libs/protobuf/kokoro/linux/dist_install/presubmit.cfg
Normal file
5
libs/protobuf/kokoro/linux/dist_install/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/dist_install/build.sh"
|
||||
timeout_mins: 1440
|
||||
29
libs/protobuf/kokoro/linux/dockerfile/push_testing_images.sh
Executable file
29
libs/protobuf/kokoro/linux/dockerfile/push_testing_images.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
cd $(dirname $0)/../../..
|
||||
git_root=$(pwd)
|
||||
cd kokoro/linux/dockerfile
|
||||
|
||||
DOCKERHUB_ORGANIZATION=protobuftesting
|
||||
|
||||
for DOCKERFILE_DIR in test/*
|
||||
do
|
||||
# Generate image name based on Dockerfile checksum. That works well as long
|
||||
# as can count on dockerfiles being written in a way that changing the logical
|
||||
# contents of the docker image always changes the SHA (e.g. using "ADD file"
|
||||
# cmd in the dockerfile in not ok as contents of the added file will not be
|
||||
# reflected in the SHA).
|
||||
DOCKER_IMAGE_NAME=$(basename $DOCKERFILE_DIR)_$(sha1sum $DOCKERFILE_DIR/Dockerfile | cut -f1 -d\ )
|
||||
|
||||
echo $DOCKER_IMAGE_NAME
|
||||
# skip the image if it already exists in the repo
|
||||
curl --silent -f -lSL https://registry.hub.docker.com/v2/repositories/${DOCKERHUB_ORGANIZATION}/${DOCKER_IMAGE_NAME}/tags/latest > /dev/null \
|
||||
&& continue
|
||||
|
||||
docker build -t ${DOCKERHUB_ORGANIZATION}/${DOCKER_IMAGE_NAME} ${DOCKERFILE_DIR}
|
||||
|
||||
# "docker login" needs to be run in advance
|
||||
docker push ${DOCKERHUB_ORGANIZATION}/${DOCKER_IMAGE_NAME}
|
||||
done
|
||||
@@ -0,0 +1,29 @@
|
||||
FROM debian:jessie
|
||||
|
||||
# Install dependencies. We start with the basic ones require to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
ccache \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6 \
|
||||
libc6-dbg \
|
||||
libc6-dev \
|
||||
libgtest-dev \
|
||||
libtool \
|
||||
make \
|
||||
parallel \
|
||||
time \
|
||||
wget \
|
||||
&& apt-get clean
|
||||
|
||||
# Install dependencies for TC malloc
|
||||
RUN apt-get install -y \
|
||||
google-perftools \
|
||||
libgoogle-perftools4 \
|
||||
libgoogle-perftools-dev
|
||||
41
libs/protobuf/kokoro/linux/dockerfile/test/csharp/Dockerfile
Normal file
41
libs/protobuf/kokoro/linux/dockerfile/test/csharp/Dockerfile
Normal file
@@ -0,0 +1,41 @@
|
||||
FROM debian:buster
|
||||
|
||||
# Install dependencies. We start with the basic ones require to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
ccache \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6 \
|
||||
libc6-dbg \
|
||||
libc6-dev \
|
||||
libgtest-dev \
|
||||
libtool \
|
||||
make \
|
||||
parallel \
|
||||
time \
|
||||
wget \
|
||||
&& apt-get clean
|
||||
|
||||
# Update ca-certificates to fix known buster + .NET 5 issue
|
||||
# https://github.com/NuGet/Announcements/issues/49
|
||||
RUN apt-get update && apt-get install -y ca-certificates && apt-get clean
|
||||
|
||||
# dotnet SDK prerequisites
|
||||
RUN apt-get update && apt-get install -y libunwind8 libicu63 && apt-get clean
|
||||
|
||||
# Install dotnet SDK via install script
|
||||
RUN wget -q https://dot.net/v1/dotnet-install.sh && \
|
||||
chmod u+x dotnet-install.sh && \
|
||||
./dotnet-install.sh --version 3.1.415 && \
|
||||
./dotnet-install.sh --version 6.0.100 && \
|
||||
ln -s /root/.dotnet/dotnet /usr/local/bin
|
||||
|
||||
RUN wget -q www.nuget.org/NuGet.exe -O /usr/local/bin/nuget.exe
|
||||
|
||||
ENV DOTNET_SKIP_FIRST_TIME_EXPERIENCE true
|
||||
@@ -0,0 +1,39 @@
|
||||
# Despite the name of this image, we are no longer on stretch.
|
||||
# We should consider renaming this image, and/or evaluating what
|
||||
# software versions we actually need.
|
||||
FROM debian:bullseye
|
||||
|
||||
# Install dependencies. We start with the basic ones required to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
ccache \
|
||||
cmake \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6 \
|
||||
libc6-dbg \
|
||||
libc6-dev \
|
||||
libgtest-dev \
|
||||
libtool \
|
||||
make \
|
||||
parallel \
|
||||
pkg-config \
|
||||
time \
|
||||
wget \
|
||||
# Java dependencies
|
||||
maven \
|
||||
openjdk-11-jdk \
|
||||
openjdk-17-jdk \
|
||||
# Required for the gtest build.
|
||||
python2 \
|
||||
# Python dependencies
|
||||
python3-dev \
|
||||
python3-setuptools \
|
||||
python3-pip \
|
||||
python3-venv \
|
||||
&& apt-get clean
|
||||
255
libs/protobuf/kokoro/linux/dockerfile/test/php/Dockerfile
Normal file
255
libs/protobuf/kokoro/linux/dockerfile/test/php/Dockerfile
Normal file
@@ -0,0 +1,255 @@
|
||||
FROM debian:jessie
|
||||
|
||||
# Install dependencies. We start with the basic ones require to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
ccache \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6 \
|
||||
libc6-dbg \
|
||||
libc6-dev \
|
||||
libgtest-dev \
|
||||
libtool \
|
||||
make \
|
||||
parallel \
|
||||
time \
|
||||
wget \
|
||||
re2c \
|
||||
sqlite3 \
|
||||
libsqlite3-dev \
|
||||
&& apt-get clean
|
||||
|
||||
# Install php dependencies
|
||||
RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
|
||||
php5 \
|
||||
libcurl4-openssl-dev \
|
||||
libgmp-dev \
|
||||
libgmp3-dev \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
unzip \
|
||||
zlib1g-dev \
|
||||
pkg-config \
|
||||
&& apt-get clean
|
||||
|
||||
# Install other dependencies
|
||||
RUN ln -sf /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
|
||||
RUN wget http://ftp.gnu.org/gnu/bison/bison-2.6.4.tar.gz -O /var/local/bison-2.6.4.tar.gz
|
||||
RUN cd /var/local \
|
||||
&& tar -zxvf bison-2.6.4.tar.gz \
|
||||
&& cd /var/local/bison-2.6.4 \
|
||||
&& ./configure \
|
||||
&& make \
|
||||
&& make install
|
||||
|
||||
# Install composer
|
||||
RUN curl -sS https://getcomposer.org/installer | php
|
||||
RUN mv composer.phar /usr/local/bin/composer
|
||||
|
||||
# Download php source code
|
||||
RUN git clone https://github.com/php/php-src
|
||||
|
||||
# php 5.6
|
||||
RUN cd php-src \
|
||||
&& git checkout PHP-5.6.39 \
|
||||
&& ./buildconf --force
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-5.6 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-5.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& mv phpunit /usr/local/php-5.6/bin
|
||||
|
||||
# php 7.0
|
||||
RUN cd php-src \
|
||||
&& git checkout PHP-7.0.33 \
|
||||
&& ./buildconf --force
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.0 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-maintainer-zts \
|
||||
--enable-mbstring \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.0-zts \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-6.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& cp phpunit /usr/local/php-7.0/bin \
|
||||
&& mv phpunit /usr/local/php-7.0-zts/bin
|
||||
|
||||
# php 7.1
|
||||
RUN cd php-src \
|
||||
&& git checkout PHP-7.1.25 \
|
||||
&& ./buildconf --force
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.1 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-maintainer-zts \
|
||||
--enable-mbstring \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.1-zts \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.5.0.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& cp phpunit /usr/local/php-7.1/bin \
|
||||
&& mv phpunit /usr/local/php-7.1-zts/bin
|
||||
|
||||
# php 7.2
|
||||
RUN cd php-src \
|
||||
&& git checkout PHP-7.2.13 \
|
||||
&& ./buildconf --force
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.2 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-maintainer-zts \
|
||||
--enable-mbstring \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.2-zts \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.5.0.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& cp phpunit /usr/local/php-7.2/bin \
|
||||
&& mv phpunit /usr/local/php-7.2-zts/bin
|
||||
|
||||
# php 7.3
|
||||
RUN cd php-src \
|
||||
&& git checkout PHP-7.3.0 \
|
||||
&& ./buildconf --force
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.3 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-maintainer-zts \
|
||||
--enable-mbstring \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.3-zts \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.5.0.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& cp phpunit /usr/local/php-7.3/bin \
|
||||
&& mv phpunit /usr/local/php-7.3-zts/bin
|
||||
|
||||
# php 7.4
|
||||
RUN wget https://ftp.gnu.org/gnu/bison/bison-3.0.1.tar.gz -O /var/local/bison-3.0.1.tar.gz
|
||||
RUN cd /var/local \
|
||||
&& tar -zxvf bison-3.0.1.tar.gz \
|
||||
&& cd /var/local/bison-3.0.1 \
|
||||
&& ./configure \
|
||||
&& make \
|
||||
&& make install
|
||||
|
||||
RUN wget https://github.com/php/php-src/archive/php-7.4.0.tar.gz -O /var/local/php-7.4.0.tar.gz
|
||||
|
||||
RUN cd /var/local \
|
||||
&& tar -zxvf php-7.4.0.tar.gz
|
||||
|
||||
RUN cd /var/local/php-src-php-7.4.0 \
|
||||
&& ./buildconf --force \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--disable-mbregex \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.4 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
RUN cd /var/local/php-src-php-7.4.0 \
|
||||
&& ./buildconf --force \
|
||||
&& ./configure \
|
||||
--enable-maintainer-zts \
|
||||
--enable-mbstring \
|
||||
--disable-mbregex \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.4-zts \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-8.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& cp phpunit /usr/local/php-7.4/bin \
|
||||
&& mv phpunit /usr/local/php-7.4-zts/bin
|
||||
|
||||
# Install php dependencies
|
||||
RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
|
||||
valgrind \
|
||||
&& apt-get clean
|
||||
124
libs/protobuf/kokoro/linux/dockerfile/test/php80/Dockerfile
Normal file
124
libs/protobuf/kokoro/linux/dockerfile/test/php80/Dockerfile
Normal file
@@ -0,0 +1,124 @@
|
||||
FROM debian:stretch
|
||||
|
||||
# Install dependencies. We start with the basic ones require to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
ccache \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6 \
|
||||
libc6-dbg \
|
||||
libc6-dev \
|
||||
libgtest-dev \
|
||||
libtool \
|
||||
make \
|
||||
parallel \
|
||||
time \
|
||||
wget \
|
||||
re2c \
|
||||
sqlite3 \
|
||||
vim \
|
||||
libonig-dev \
|
||||
libsqlite3-dev \
|
||||
&& apt-get clean
|
||||
|
||||
# Install php dependencies
|
||||
RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
|
||||
php \
|
||||
libcurl4-openssl-dev \
|
||||
libgmp-dev \
|
||||
libgmp3-dev \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
unzip \
|
||||
zlib1g-dev \
|
||||
pkg-config \
|
||||
&& apt-get clean
|
||||
|
||||
# Install other dependencies
|
||||
RUN ln -sf /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
|
||||
RUN wget https://ftp.gnu.org/gnu/bison/bison-3.0.1.tar.gz -O /var/local/bison-3.0.1.tar.gz
|
||||
RUN cd /var/local \
|
||||
&& tar -zxvf bison-3.0.1.tar.gz \
|
||||
&& cd /var/local/bison-3.0.1 \
|
||||
&& ./configure \
|
||||
&& make \
|
||||
&& make install
|
||||
|
||||
# Install composer
|
||||
RUN curl -sS https://getcomposer.org/installer | php
|
||||
RUN mv composer.phar /usr/local/bin/composer
|
||||
|
||||
# Download php source code
|
||||
RUN git clone https://github.com/php/php-src
|
||||
|
||||
# php 8.0
|
||||
RUN cd php-src \
|
||||
&& git checkout php-8.0.0 \
|
||||
&& ./buildconf --force
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-8.0 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--enable-maintainer-zts \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-8.0-zts \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-9.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& cp phpunit /usr/local/php-8.0/bin \
|
||||
&& mv phpunit /usr/local/php-8.0-zts/bin
|
||||
|
||||
# php 8.1
|
||||
RUN cd php-src \
|
||||
&& git checkout php-8.1.2 \
|
||||
&& ./buildconf --force
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-8.1 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--enable-maintainer-zts \
|
||||
--with-gmp \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-8.1-zts \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
# Install php dependencies
|
||||
RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
|
||||
valgrind \
|
||||
&& apt-get clean
|
||||
260
libs/protobuf/kokoro/linux/dockerfile/test/php_32bit/Dockerfile
Normal file
260
libs/protobuf/kokoro/linux/dockerfile/test/php_32bit/Dockerfile
Normal file
@@ -0,0 +1,260 @@
|
||||
FROM i386/debian:jessie
|
||||
|
||||
# Install dependencies. We start with the basic ones require to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
ccache \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6 \
|
||||
libc6-dbg \
|
||||
libc6-dev \
|
||||
libgtest-dev \
|
||||
libtool \
|
||||
make \
|
||||
parallel \
|
||||
time \
|
||||
wget \
|
||||
re2c \
|
||||
sqlite3 \
|
||||
libsqlite3-dev \
|
||||
&& apt-get clean
|
||||
|
||||
# Install php dependencies
|
||||
RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
|
||||
bison \
|
||||
php5 \
|
||||
libcurl4-openssl-dev \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
unzip \
|
||||
zlib1g-dev \
|
||||
pkg-config \
|
||||
&& apt-get clean
|
||||
|
||||
# Install other dependencies
|
||||
RUN wget http://ftp.gnu.org/gnu/bison/bison-2.6.4.tar.gz -O /var/local/bison-2.6.4.tar.gz
|
||||
RUN cd /var/local \
|
||||
&& tar -zxvf bison-2.6.4.tar.gz \
|
||||
&& cd /var/local/bison-2.6.4 \
|
||||
&& ./configure \
|
||||
&& make \
|
||||
&& make install
|
||||
|
||||
# Install composer
|
||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||
RUN php composer-setup.php
|
||||
RUN mv composer.phar /usr/bin/composer
|
||||
RUN php -r "unlink('composer-setup.php');"
|
||||
|
||||
# Download php source code
|
||||
RUN git clone https://github.com/php/php-src
|
||||
|
||||
# php 5.6
|
||||
RUN cd php-src \
|
||||
&& git checkout PHP-5.6.39 \
|
||||
&& ./buildconf --force
|
||||
RUN cd php-src \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-5.6 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-5.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& mv phpunit /usr/local/php-5.6/bin
|
||||
|
||||
# php 7.0
|
||||
RUN wget https://github.com/php/php-src/archive/php-7.0.33.tar.gz -O /var/local/php-7.0.33.tar.gz
|
||||
|
||||
RUN cd /var/local \
|
||||
&& tar -zxvf php-7.0.33.tar.gz
|
||||
|
||||
RUN cd /var/local/php-src-php-7.0.33 \
|
||||
&& ./buildconf --force \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.0 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
RUN cd /var/local/php-src-php-7.0.33 \
|
||||
&& ./buildconf --force \
|
||||
&& ./configure \
|
||||
--enable-maintainer-zts \
|
||||
--enable-mbstring \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.0-zts \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-6.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& cp phpunit /usr/local/php-7.0/bin \
|
||||
&& mv phpunit /usr/local/php-7.0-zts/bin
|
||||
|
||||
# php 7.1
|
||||
RUN wget https://github.com/php/php-src/archive/php-7.1.25.tar.gz -O /var/local/php-7.1.25.tar.gz
|
||||
|
||||
RUN cd /var/local \
|
||||
&& tar -zxvf php-7.1.25.tar.gz
|
||||
|
||||
RUN cd /var/local/php-src-php-7.1.25 \
|
||||
&& ./buildconf --force \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.1 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
RUN cd /var/local/php-src-php-7.1.25 \
|
||||
&& ./buildconf --force \
|
||||
&& ./configure \
|
||||
--enable-maintainer-zts \
|
||||
--enable-mbstring \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.1-zts \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.5.0.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& cp phpunit /usr/local/php-7.1/bin \
|
||||
&& mv phpunit /usr/local/php-7.1-zts/bin
|
||||
|
||||
# php 7.2
|
||||
RUN wget https://github.com/php/php-src/archive/php-7.2.13.tar.gz -O /var/local/php-7.2.13.tar.gz
|
||||
|
||||
RUN cd /var/local \
|
||||
&& tar -zxvf php-7.2.13.tar.gz
|
||||
|
||||
RUN cd /var/local/php-src-php-7.2.13 \
|
||||
&& ./buildconf --force \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.2 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
RUN cd /var/local/php-src-php-7.2.13 \
|
||||
&& ./buildconf --force \
|
||||
&& ./configure \
|
||||
--enable-maintainer-zts \
|
||||
--enable-mbstring \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.2-zts \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.5.0.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& cp phpunit /usr/local/php-7.2/bin \
|
||||
&& mv phpunit /usr/local/php-7.2-zts/bin
|
||||
|
||||
# php 7.3
|
||||
RUN wget https://github.com/php/php-src/archive/php-7.3.0.tar.gz -O /var/local/php-7.3.0.tar.gz
|
||||
|
||||
RUN cd /var/local \
|
||||
&& tar -zxvf php-7.3.0.tar.gz
|
||||
|
||||
RUN cd /var/local/php-src-php-7.3.0 \
|
||||
&& ./buildconf --force \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.3 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
RUN cd /var/local/php-src-php-7.3.0 \
|
||||
&& ./buildconf --force \
|
||||
&& ./configure \
|
||||
--enable-maintainer-zts \
|
||||
--enable-mbstring \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.3-zts \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-7.5.0.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& cp phpunit /usr/local/php-7.3/bin \
|
||||
&& mv phpunit /usr/local/php-7.3-zts/bin
|
||||
|
||||
# php 7.4
|
||||
RUN wget https://ftp.gnu.org/gnu/bison/bison-3.0.1.tar.gz -O /var/local/bison-3.0.1.tar.gz
|
||||
RUN cd /var/local \
|
||||
&& tar -zxvf bison-3.0.1.tar.gz \
|
||||
&& cd /var/local/bison-3.0.1 \
|
||||
&& ./configure \
|
||||
&& make \
|
||||
&& make install
|
||||
|
||||
RUN wget https://github.com/php/php-src/archive/php-7.4.0.tar.gz -O /var/local/php-7.4.0.tar.gz
|
||||
|
||||
RUN cd /var/local \
|
||||
&& tar -zxvf php-7.4.0.tar.gz
|
||||
|
||||
RUN cd /var/local/php-src-php-7.4.0 \
|
||||
&& ./buildconf --force \
|
||||
&& ./configure \
|
||||
--enable-bcmath \
|
||||
--enable-mbstring \
|
||||
--disable-mbregex \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.4 \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
RUN cd /var/local/php-src-php-7.4.0 \
|
||||
&& ./buildconf --force \
|
||||
&& ./configure \
|
||||
--enable-maintainer-zts \
|
||||
--enable-mbstring \
|
||||
--disable-mbregex \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--prefix=/usr/local/php-7.4-zts \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& make clean
|
||||
|
||||
RUN wget -O phpunit https://phar.phpunit.de/phpunit-8.phar \
|
||||
&& chmod +x phpunit \
|
||||
&& cp phpunit /usr/local/php-7.4/bin \
|
||||
&& mv phpunit /usr/local/php-7.4-zts/bin
|
||||
|
||||
# Install php dependencies
|
||||
RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
|
||||
valgrind \
|
||||
&& apt-get clean
|
||||
@@ -0,0 +1,31 @@
|
||||
FROM python:3.10-buster
|
||||
|
||||
# Install dependencies. We start with the basic ones require to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
ccache \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6 \
|
||||
libc6-dbg \
|
||||
libc6-dev \
|
||||
libgtest-dev \
|
||||
libtool \
|
||||
make \
|
||||
parallel \
|
||||
time \
|
||||
wget \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Python libraries.
|
||||
RUN python -m pip install --no-cache-dir --upgrade \
|
||||
pip \
|
||||
setuptools \
|
||||
tox \
|
||||
wheel
|
||||
@@ -0,0 +1,31 @@
|
||||
FROM python:3.7-buster
|
||||
|
||||
# Install dependencies. We start with the basic ones require to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
ccache \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6 \
|
||||
libc6-dbg \
|
||||
libc6-dev \
|
||||
libgtest-dev \
|
||||
libtool \
|
||||
make \
|
||||
parallel \
|
||||
time \
|
||||
wget \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Python libraries.
|
||||
RUN python -m pip install --no-cache-dir --upgrade \
|
||||
pip \
|
||||
setuptools \
|
||||
tox \
|
||||
wheel
|
||||
@@ -0,0 +1,31 @@
|
||||
FROM python:3.8-buster
|
||||
|
||||
# Install dependencies. We start with the basic ones require to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
ccache \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6 \
|
||||
libc6-dbg \
|
||||
libc6-dev \
|
||||
libgtest-dev \
|
||||
libtool \
|
||||
make \
|
||||
parallel \
|
||||
time \
|
||||
wget \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Python libraries.
|
||||
RUN python -m pip install --no-cache-dir --upgrade \
|
||||
pip \
|
||||
setuptools \
|
||||
tox \
|
||||
wheel
|
||||
@@ -0,0 +1,31 @@
|
||||
FROM python:3.9-buster
|
||||
|
||||
# Install dependencies. We start with the basic ones require to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
ccache \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6 \
|
||||
libc6-dbg \
|
||||
libc6-dev \
|
||||
libgtest-dev \
|
||||
libtool \
|
||||
make \
|
||||
parallel \
|
||||
time \
|
||||
wget \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install Python libraries.
|
||||
RUN python -m pip install --no-cache-dir --upgrade \
|
||||
pip \
|
||||
setuptools \
|
||||
tox \
|
||||
wheel
|
||||
44
libs/protobuf/kokoro/linux/dockerfile/test/ruby/Dockerfile
Normal file
44
libs/protobuf/kokoro/linux/dockerfile/test/ruby/Dockerfile
Normal file
@@ -0,0 +1,44 @@
|
||||
FROM debian:stretch
|
||||
|
||||
# Install dependencies. We start with the basic ones require to build protoc
|
||||
# and the C++ build
|
||||
RUN apt-get update && apt-get install -y \
|
||||
autoconf \
|
||||
autotools-dev \
|
||||
build-essential \
|
||||
bzip2 \
|
||||
ccache \
|
||||
curl \
|
||||
gcc \
|
||||
git \
|
||||
libc6 \
|
||||
libc6-dbg \
|
||||
libc6-dev \
|
||||
libgtest-dev \
|
||||
libtool \
|
||||
make \
|
||||
parallel \
|
||||
time \
|
||||
wget \
|
||||
# Java dependencies
|
||||
maven \
|
||||
openjdk-8-jdk \
|
||||
&& apt-get clean
|
||||
|
||||
# Install rvm
|
||||
RUN gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys \
|
||||
409B6B1796C275462A1703113804BB82D39DC0E3 \
|
||||
7D2BAF1CF37B13E2069D6956105BD0E739499BDB
|
||||
RUN \curl -sSL https://raw.githubusercontent.com/rvm/rvm/master/binscripts/rvm-installer | bash -s master
|
||||
|
||||
RUN /bin/bash -l -c "rvm install 2.5.1"
|
||||
RUN /bin/bash -l -c "rvm install 2.6.0"
|
||||
RUN /bin/bash -l -c "rvm install 2.7.0"
|
||||
RUN /bin/bash -l -c "rvm install 3.0.0"
|
||||
RUN /bin/bash -l -c "rvm install 3.1.0"
|
||||
RUN /bin/bash -l -c "rvm install jruby-9.2.20.1"
|
||||
RUN /bin/bash -l -c "rvm install jruby-9.3.3.0"
|
||||
RUN /bin/bash -l -c "rvm install jruby-9.3.4.0"
|
||||
|
||||
RUN /bin/bash -l -c "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
||||
RUN /bin/bash -l -c "echo 'export PATH=/usr/local/rvm/bin:$PATH' >> ~/.bashrc"
|
||||
16
libs/protobuf/kokoro/linux/java_aarch64/build.sh
Executable file
16
libs/protobuf/kokoro/linux/java_aarch64/build.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This is the top-level script we give to Kokoro as the entry point for
|
||||
# running the "continuous" and "presubmit" jobs.
|
||||
|
||||
set -ex
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
# Initialize any submodules.
|
||||
git submodule update --init --recursive
|
||||
|
||||
kokoro/linux/aarch64/qemu_helpers/prepare_qemu.sh
|
||||
|
||||
kokoro/linux/aarch64/test_java_aarch64.sh
|
||||
@@ -1,21 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/bazel.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
env_vars {
|
||||
key: "CONTAINER_IMAGE"
|
||||
value: "gcr.io/protobuf-build/emulation/linux:aarch64-4e847d7a01c1792471b6dd985ab0bf2677332e6f"
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_TARGETS"
|
||||
value: "//java/..."
|
||||
}
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/java_aarch64/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/java_aarch64/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
22
libs/protobuf/kokoro/linux/java_jdk11/build.sh
Executable file
22
libs/protobuf/kokoro/linux/java_jdk11/build.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This is the top-level script we give to Kokoro as the entry point for
|
||||
# running the "pull request" project:
|
||||
#
|
||||
# This script selects a specific Dockerfile (for building a Docker image) and
|
||||
# a script to run inside that image. Then we delegate to the general
|
||||
# build_and_run_docker.sh script.
|
||||
|
||||
# fail on error
|
||||
set -e
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
export DOCKERHUB_ORGANIZATION=protobuftesting
|
||||
# The image of the Dockerfile sha1 is fetched from the organization
|
||||
export DOCKERFILE_DIR=kokoro/linux/dockerfile/test/java_stretch
|
||||
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh
|
||||
export OUTPUT_DIR=testoutput
|
||||
export TEST_SET="java_jdk11"
|
||||
./kokoro/linux/build_and_run_docker.sh
|
||||
@@ -1,16 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/bazel.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_TARGETS"
|
||||
value: "//java/..."
|
||||
}
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/java_jdk11/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1,12 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running Linkage Monitor in Kokoro
|
||||
# https://github.com/GoogleCloudPlatform/cloud-opensource-java/tree/master/linkage-monitor
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/java_jdk11/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
22
libs/protobuf/kokoro/linux/java_jdk17/build.sh
Executable file
22
libs/protobuf/kokoro/linux/java_jdk17/build.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This is the top-level script we give to Kokoro as the entry point for
|
||||
# running the "pull request" project:
|
||||
#
|
||||
# This script selects a specific Dockerfile (for building a Docker image) and
|
||||
# a script to run inside that image. Then we delegate to the general
|
||||
# build_and_run_docker.sh script.
|
||||
|
||||
# Fail on error
|
||||
set -e
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
export DOCKERHUB_ORGANIZATION=protobuftesting
|
||||
# The image of the Dockerfile sha1 is fetched from the organization
|
||||
export DOCKERFILE_DIR=kokoro/linux/dockerfile/test/java_stretch
|
||||
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh
|
||||
export OUTPUT_DIR=testoutput
|
||||
export TEST_SET="java_jdk17"
|
||||
./kokoro/linux/build_and_run_docker.sh
|
||||
@@ -1,21 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/bazel.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
env_vars {
|
||||
key: "CONTAINER_IMAGE"
|
||||
value: "gcr.io/protobuf-build/java/linux:17-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_TARGETS"
|
||||
value: "//java/..."
|
||||
}
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/java_jdk17/build.sh"
|
||||
timeout_mins: 60
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1,12 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running Linkage Monitor in Kokoro
|
||||
# https://github.com/GoogleCloudPlatform/cloud-opensource-java/tree/master/linkage-monitor
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/java_jdk17/build.sh"
|
||||
timeout_mins: 60
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,24 +4,16 @@
|
||||
# running the "pull request" project:
|
||||
#
|
||||
# This script selects a specific Dockerfile (for building a Docker image) and
|
||||
# a script to run inside that image.
|
||||
|
||||
use_bazel.sh 4.2.2
|
||||
# a script to run inside that image. Then we delegate to the general
|
||||
# build_and_run_docker.sh script.
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
bazel build //:protoc
|
||||
|
||||
# The java build setup expects protoc in the root directory.
|
||||
cp bazel-bin/protoc .
|
||||
|
||||
cd java
|
||||
# Installs the snapshot version locally
|
||||
mvn -e -B -Dhttps.protocols=TLSv1.2 install -Dmaven.test.skip=true
|
||||
|
||||
# Linkage Monitor uses the snapshot versions installed in $HOME/.m2 to verify compatibility
|
||||
JAR=linkage-monitor-latest-all-deps.jar
|
||||
curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}"
|
||||
# Fails if there's new linkage errors compared with baseline
|
||||
java -jar $JAR com.google.cloud:libraries-bom
|
||||
export DOCKERHUB_ORGANIZATION=protobuftesting
|
||||
# The image of the Dockerfile sha1 is fetched from the organization
|
||||
export DOCKERFILE_DIR=kokoro/linux/dockerfile/test/java_stretch
|
||||
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh
|
||||
export OUTPUT_DIR=testoutput
|
||||
export TEST_SET="java_linkage_monitor"
|
||||
./kokoro/linux/build_and_run_docker.sh
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
# Config file for running Linkage Monitor in Kokoro
|
||||
# https://github.com/GoogleCloudPlatform/cloud-opensource-java/tree/master/linkage-monitor
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/java_linkage_monitor/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/java_linkage_monitor/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1,12 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running Linkage Monitor in Kokoro
|
||||
# https://github.com/GoogleCloudPlatform/cloud-opensource-java/tree/master/linkage-monitor
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/java_linkage_monitor/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
18
libs/protobuf/kokoro/linux/jruby92/build.sh
Executable file
18
libs/protobuf/kokoro/linux/jruby92/build.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This is the top-level script we give to Kokoro as the entry point for
|
||||
# running the "pull request" project:
|
||||
#
|
||||
# This script selects a specific Dockerfile (for building a Docker image) and
|
||||
# a script to run inside that image. Then we delegate to the general
|
||||
# build_and_run_docker.sh script.
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
export DOCKERHUB_ORGANIZATION=protobuftesting
|
||||
export DOCKERFILE_DIR=kokoro/linux/dockerfile/test/ruby
|
||||
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh
|
||||
export OUTPUT_DIR=testoutput
|
||||
export TEST_SET="jruby92"
|
||||
./kokoro/linux/build_and_run_docker.sh
|
||||
@@ -1,26 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/bazel.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
env_vars {
|
||||
key: "CONTAINER_IMAGE"
|
||||
value: "gcr.io/protobuf-build/ruby/linux:jruby-9.2.20.1-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_TARGETS"
|
||||
value: "//ruby/..."
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_EXTRA_FLAGS"
|
||||
value: "--define=ruby_platform=java"
|
||||
}
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/jruby92/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/jruby92/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
18
libs/protobuf/kokoro/linux/jruby93/build.sh
Executable file
18
libs/protobuf/kokoro/linux/jruby93/build.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# This is the top-level script we give to Kokoro as the entry point for
|
||||
# running the "pull request" project:
|
||||
#
|
||||
# This script selects a specific Dockerfile (for building a Docker image) and
|
||||
# a script to run inside that image. Then we delegate to the general
|
||||
# build_and_run_docker.sh script.
|
||||
|
||||
# Change to repo root
|
||||
cd $(dirname $0)/../../..
|
||||
|
||||
export DOCKERHUB_ORGANIZATION=protobuftesting
|
||||
export DOCKERFILE_DIR=kokoro/linux/dockerfile/test/ruby
|
||||
export DOCKER_RUN_SCRIPT=kokoro/linux/pull_request_in_docker.sh
|
||||
export OUTPUT_DIR=testoutput
|
||||
export TEST_SET="jruby93"
|
||||
./kokoro/linux/build_and_run_docker.sh
|
||||
@@ -1,26 +0,0 @@
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/bazel.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
env_vars {
|
||||
key: "CONTAINER_IMAGE"
|
||||
value: "gcr.io/protobuf-build/ruby/linux:jruby-9.3.4.0-64e8944e4f18d7d6c9649112a8a93be57e693cd8"
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_TARGETS"
|
||||
value: "//ruby/..."
|
||||
}
|
||||
|
||||
env_vars {
|
||||
key: "BAZEL_EXTRA_FLAGS"
|
||||
value: "--define=ruby_platform=java"
|
||||
}
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.*"
|
||||
}
|
||||
}
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/jruby93/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1,11 @@
|
||||
# Keep this file empty! Use common.cfg instead.
|
||||
# Config file for running tests in Kokoro
|
||||
|
||||
# Location of the build script in repository
|
||||
build_file: "protobuf/kokoro/linux/jruby93/build.sh"
|
||||
timeout_mins: 120
|
||||
|
||||
action {
|
||||
define_artifacts {
|
||||
regex: "**/sponge_log.xml"
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user