mirror of https://github.com/grpc/grpc.git
Update min PHP testing version from PHP 7.4 to 8.1 (#35964)
- PHP 7.4 and 8.0 have been EOL https://www.php.net/supported-versions.php
- See go/drop-php-8.0 for more details
Most of the changes came from `generate_projects.sh` after updating the `tools/buildgen/plugins/expand_version.py` file. The change to `tools/internal_ci/helper_scripts/prepare_build_macos_rc` is manual.
Closes #35964
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35964 from stanley-cheung:php-update-to-8_1 0c24c4eac2
PiperOrigin-RevId: 609495798
pull/35937/head^2
parent
ab8a756b1d
commit
18af795edf
25 changed files with 55 additions and 130 deletions
@ -1,41 +0,0 @@ |
||||
# Copyright 2020 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:8.1-buster |
||||
|
||||
RUN apt-get -qq update && apt-get -qq -y upgrade && 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-9.5.9.phar && \ |
||||
mv phpunit-9.5.9.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", \ |
||||
"--ignore-valgrind-undef-errors"] |
||||
|
@ -1,3 +0,0 @@ |
||||
RUN wget https://phar.phpunit.de/phpunit-8.5.13.phar && ${'\\'} |
||||
mv phpunit-8.5.13.phar /usr/local/bin/phpunit && ${'\\'} |
||||
chmod +x /usr/local/bin/phpunit |
@ -1,32 +0,0 @@ |
||||
%YAML 1.2 |
||||
--- | |
||||
# Copyright 2020 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:8.1-buster |
||||
|
||||
RUN apt-get -qq update && apt-get -qq -y upgrade && apt-get -qq install -y ${'\\'} |
||||
autoconf automake git libtool pkg-config ${'\\'} |
||||
valgrind wget zlib1g-dev |
||||
|
||||
ARG MAKEFLAGS=-j8 |
||||
|
||||
|
||||
WORKDIR /tmp |
||||
|
||||
<%include file="../download_phpunit9.include" /> |
||||
|
||||
<%include file="../pecl_ext_build_src.include" /> |
||||
|
||||
<%include file="../dockerfile_cmd.include" /> |
Loading…
Reference in new issue