mirror of https://github.com/grpc/grpc.git
Merge pull request #23922 from HannahShiSFB/del-php5-build
PHP: stop testing against PHP5pull/24085/head
commit
3b80a96570
18 changed files with 6 additions and 433 deletions
@ -1,39 +0,0 @@ |
||||
# Copyright 2019 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
FROM php:5.6-zts-stretch |
||||
|
||||
RUN apt-get -qq update && apt-get -qq install -y \ |
||||
autoconf automake git libtool pkg-config \ |
||||
valgrind wget zlib1g-dev |
||||
|
||||
ARG MAKEFLAGS=-j8 |
||||
|
||||
|
||||
WORKDIR /tmp |
||||
|
||||
RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \ |
||||
mv phpunit-5.7.27.phar /usr/local/bin/phpunit && \ |
||||
chmod +x /usr/local/bin/phpunit |
||||
|
||||
|
||||
WORKDIR /github/grpc |
||||
|
||||
COPY . . |
||||
|
||||
RUN pear package && \ |
||||
find . -name grpc-*.tgz | xargs -I{} pecl install {} |
||||
|
||||
|
||||
CMD ["/github/grpc/src/php/bin/run_tests.sh", "--skip-persistent-channel-tests"] |
@ -1,32 +0,0 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
# Copyright 2019 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
FROM php:5.6-zts-stretch |
||||
|
||||
RUN apt-get -qq update && apt-get -qq install -y ${'\\'} |
||||
autoconf automake git libtool pkg-config ${'\\'} |
||||
valgrind wget zlib1g-dev |
||||
|
||||
ARG MAKEFLAGS=-j8 |
||||
|
||||
|
||||
WORKDIR /tmp |
||||
|
||||
<%include file="../download_phpunit.include" /> |
||||
|
||||
<%include file="../pecl_ext_build_src.include" /> |
||||
|
||||
CMD ["/github/grpc/src/php/bin/run_tests.sh", "--skip-persistent-channel-tests"] |
@ -1,23 +0,0 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
# Copyright 2016 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
<%include file="../../debian_jessie_header.include"/> |
||||
|
||||
<%include file="../../apt_get_basic.include"/> |
||||
<%include file="../../php_deps.include"/> |
||||
<%include file="../../run_tests_addons.include"/> |
||||
<%include file="../../php_common_deps.include"/> |
||||
|
@ -1,11 +0,0 @@ |
||||
#================= |
||||
# PHP dependencies |
||||
|
||||
# Install dependencies |
||||
|
||||
RUN apt-get update && apt-get install -y ${'\\'} |
||||
git php5 php5-dev unzip |
||||
|
||||
RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && ${'\\'} |
||||
mv phpunit-5.7.27.phar /usr/local/bin/phpunit && ${'\\'} |
||||
chmod +x /usr/local/bin/phpunit |
@ -1,25 +0,0 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
# Copyright 2015 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
<%include file="../../debian_jessie_header.include"/> |
||||
|
||||
<%include file="../../apt_get_basic.include"/> |
||||
<%include file="../../python_deps.include"/> |
||||
<%include file="../../gcp_api_libraries.include"/> |
||||
<%include file="../../php_deps.include"/> |
||||
<%include file="../../run_tests_addons.include"/> |
||||
# Define the default command. |
||||
CMD ["bash"] |
@ -1,74 +0,0 @@ |
||||
# Copyright 2016 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
FROM debian:jessie |
||||
|
||||
|
||||
# Install Git and basic packages. |
||||
RUN apt-get update && apt-get install -y \ |
||||
autoconf \ |
||||
autotools-dev \ |
||||
build-essential \ |
||||
bzip2 \ |
||||
ccache \ |
||||
curl \ |
||||
dnsutils \ |
||||
gcc \ |
||||
gcc-multilib \ |
||||
git \ |
||||
golang \ |
||||
gyp \ |
||||
lcov \ |
||||
libc6 \ |
||||
libc6-dbg \ |
||||
libc6-dev \ |
||||
libgtest-dev \ |
||||
libtool \ |
||||
make \ |
||||
perl \ |
||||
strace \ |
||||
python-dev \ |
||||
python-setuptools \ |
||||
python-yaml \ |
||||
telnet \ |
||||
unzip \ |
||||
wget \ |
||||
zip && apt-get clean |
||||
|
||||
#================ |
||||
# Build profiling |
||||
RUN apt-get update && apt-get install -y time && apt-get clean |
||||
|
||||
#================= |
||||
# PHP dependencies |
||||
|
||||
# Install dependencies |
||||
|
||||
RUN apt-get update && apt-get install -y \ |
||||
git php5 php5-dev unzip |
||||
|
||||
RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \ |
||||
mv phpunit-5.7.27.phar /usr/local/bin/phpunit && \ |
||||
chmod +x /usr/local/bin/phpunit |
||||
|
||||
|
||||
RUN mkdir /var/local/jenkins |
||||
|
||||
# Install composer |
||||
RUN curl -sS https://getcomposer.org/installer | php |
||||
RUN mv composer.phar /usr/local/bin/composer |
||||
|
||||
# Define the default command. |
||||
CMD ["bash"] |
||||
|
@ -1,53 +0,0 @@ |
||||
#!/bin/bash |
||||
# Copyright 2015 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
# |
||||
# Builds PHP interop server and client in a base image. |
||||
set -ex |
||||
|
||||
mkdir -p /var/local/git |
||||
git clone /var/local/jenkins/grpc /var/local/git/grpc |
||||
# clone gRPC submodules, use data from locally cloned submodules where possible |
||||
(cd /var/local/jenkins/grpc/ && git submodule foreach 'cd /var/local/git/grpc \ |
||||
&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \ |
||||
${name}') |
||||
|
||||
# copy service account keys if available |
||||
cp -r /var/local/jenkins/service_account $HOME || true |
||||
|
||||
cd /var/local/git/grpc |
||||
grpc_root="$(pwd)" |
||||
|
||||
# Install gRPC C core |
||||
make -j4 shared_c static_c |
||||
|
||||
# Build gRPC PHP native extension |
||||
pushd src/php/ext/grpc |
||||
phpize |
||||
GRPC_LIB_SUBDIR=libs/opt ./configure --enable-grpc="${grpc_root}" |
||||
make -j4 |
||||
popd |
||||
|
||||
cd src/php |
||||
|
||||
DONE=0 |
||||
for ((i = 0; i < 5; i++)); do |
||||
php -d extension=ext/grpc/modules/grpc.so /usr/local/bin/composer install && DONE=1 && break |
||||
done |
||||
|
||||
if [ "$DONE" != "1" ] |
||||
then |
||||
echo "Failed to do composer install" |
||||
exit 1 |
||||
fi |
@ -1,88 +0,0 @@ |
||||
# Copyright 2015 gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
|
||||
FROM debian:jessie |
||||
|
||||
|
||||
# Install Git and basic packages. |
||||
RUN apt-get update && apt-get install -y \ |
||||
autoconf \ |
||||
autotools-dev \ |
||||
build-essential \ |
||||
bzip2 \ |
||||
ccache \ |
||||
curl \ |
||||
dnsutils \ |
||||
gcc \ |
||||
gcc-multilib \ |
||||
git \ |
||||
golang \ |
||||
gyp \ |
||||
lcov \ |
||||
libc6 \ |
||||
libc6-dbg \ |
||||
libc6-dev \ |
||||
libgtest-dev \ |
||||
libtool \ |
||||
make \ |
||||
perl \ |
||||
strace \ |
||||
python-dev \ |
||||
python-setuptools \ |
||||
python-yaml \ |
||||
telnet \ |
||||
unzip \ |
||||
wget \ |
||||
zip && apt-get clean |
||||
|
||||
#================ |
||||
# Build profiling |
||||
RUN apt-get update && apt-get install -y time && apt-get clean |
||||
|
||||
#==================== |
||||
# Python dependencies |
||||
|
||||
# Install dependencies |
||||
|
||||
RUN apt-get update && apt-get install -y \ |
||||
python-all-dev \ |
||||
python3-all-dev \ |
||||
python-setuptools |
||||
|
||||
# Install Python packages from PyPI |
||||
RUN curl https://bootstrap.pypa.io/get-pip.py | python2.7 |
||||
RUN pip install --upgrade pip==19.3.1 |
||||
RUN pip install virtualenv==16.7.9 |
||||
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0 |
||||
|
||||
# Google Cloud platform API libraries |
||||
RUN pip install --upgrade google-api-python-client oauth2client |
||||
|
||||
#================= |
||||
# PHP dependencies |
||||
|
||||
# Install dependencies |
||||
|
||||
RUN apt-get update && apt-get install -y \ |
||||
git php5 php5-dev unzip |
||||
|
||||
RUN wget https://phar.phpunit.de/phpunit-5.7.27.phar && \ |
||||
mv phpunit-5.7.27.phar /usr/local/bin/phpunit && \ |
||||
chmod +x /usr/local/bin/phpunit |
||||
|
||||
|
||||
RUN mkdir /var/local/jenkins |
||||
|
||||
# Define the default command. |
||||
CMD ["bash"] |
Loading…
Reference in new issue