More places to upgrade phpunit versions

pull/35964/head
Stanley Cheung 1 year ago
parent 349d43fe57
commit c07720c3b3
  1. 4
      src/php/docker/alpine/Dockerfile
  2. 4
      src/php/docker/centos7/Dockerfile
  3. 4
      src/php/docker/grpc-ext/Dockerfile
  4. 4
      src/php/docker/grpc-src/Dockerfile
  5. 4
      src/php/docker/i386/Dockerfile
  6. 4
      src/php/docker/php-src/Dockerfile
  7. 4
      src/php/docker/php-zts/Dockerfile
  8. 2
      templates/src/php/docker/alpine/Dockerfile.template
  9. 2
      templates/src/php/docker/centos7/Dockerfile.template
  10. 3
      templates/src/php/docker/download_phpunit.include
  11. 2
      templates/src/php/docker/grpc-ext/Dockerfile.template
  12. 2
      templates/src/php/docker/grpc-src/Dockerfile.template
  13. 2
      templates/src/php/docker/i386/Dockerfile.template
  14. 2
      templates/src/php/docker/php-src/Dockerfile.template
  15. 2
      templates/src/php/docker/php-zts/Dockerfile.template
  16. 32
      templates/src/php/docker/php8/Dockerfile.template
  17. 4
      tools/internal_ci/helper_scripts/prepare_build_macos_rc

@ -21,8 +21,8 @@ ARG MAKEFLAGS=-j8
WORKDIR /tmp
RUN wget https://phar.phpunit.de/phpunit-8.5.13.phar && \
mv phpunit-8.5.13.phar /usr/local/bin/phpunit && \
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

@ -35,8 +35,8 @@ ARG MAKEFLAGS=-j8
WORKDIR /tmp
RUN wget https://phar.phpunit.de/phpunit-8.5.13.phar && \
mv phpunit-8.5.13.phar /usr/local/bin/phpunit && \
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

@ -23,8 +23,8 @@ ARG MAKEFLAGS=-j8
WORKDIR /tmp
RUN wget https://phar.phpunit.de/phpunit-8.5.13.phar && \
mv phpunit-8.5.13.phar /usr/local/bin/phpunit && \
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

@ -23,8 +23,8 @@ ARG MAKEFLAGS=-j8
WORKDIR /tmp
RUN wget https://phar.phpunit.de/phpunit-8.5.13.phar && \
mv phpunit-8.5.13.phar /usr/local/bin/phpunit && \
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

@ -23,8 +23,8 @@ ARG MAKEFLAGS=-j8
WORKDIR /tmp
RUN wget https://phar.phpunit.de/phpunit-8.5.13.phar && \
mv phpunit-8.5.13.phar /usr/local/bin/phpunit && \
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

@ -23,8 +23,8 @@ RUN apt-get -qq update && apt-get -qq -y upgrade && apt-get -qq install -y \
WORKDIR /tmp
RUN wget https://phar.phpunit.de/phpunit-8.5.13.phar && \
mv phpunit-8.5.13.phar /usr/local/bin/phpunit && \
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

@ -23,8 +23,8 @@ ARG MAKEFLAGS=-j8
WORKDIR /tmp
RUN wget https://phar.phpunit.de/phpunit-8.5.13.phar && \
mv phpunit-8.5.13.phar /usr/local/bin/phpunit && \
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

@ -23,7 +23,7 @@
WORKDIR /tmp
<%include file="../download_phpunit.include" />
<%include file="../download_phpunit9.include" />
<%include file="../pecl_ext_build_src.include" />

@ -37,7 +37,7 @@
WORKDIR /tmp
<%include file="../download_phpunit.include" />
<%include file="../download_phpunit9.include" />
<%include file="../pecl_ext_build_src.include" />

@ -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

@ -25,7 +25,7 @@
WORKDIR /tmp
<%include file="../download_phpunit.include" />
<%include file="../download_phpunit9.include" />
<%include file="../pecl_ext_build_src.include" />

@ -25,7 +25,7 @@
WORKDIR /tmp
<%include file="../download_phpunit.include" />
<%include file="../download_phpunit9.include" />
WORKDIR /github/grpc

@ -25,7 +25,7 @@
WORKDIR /tmp
<%include file="../download_phpunit.include" />
<%include file="../download_phpunit9.include" />
<%include file="../pecl_ext_build_src.include" />

@ -25,7 +25,7 @@
WORKDIR /tmp
<%include file="../download_phpunit.include" />
<%include file="../download_phpunit9.include" />
WORKDIR /github/php-src

@ -25,7 +25,7 @@
WORKDIR /tmp
<%include file="../download_phpunit.include" />
<%include file="../download_phpunit9.include" />
<%include file="../pecl_ext_build_src.include" />

@ -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" />

@ -208,6 +208,10 @@ then
# Workaround for https://github.com/Homebrew/homebrew-core/issues/41081
mkdir -p /usr/local/lib/php/pecl
# Download the right version of phpunit to match PHP version
sudo curl -sSL https://phar.phpunit.de/phpunit-9.5.9.phar -o /usr/local/bin/phpunit
sudo chmod +x /usr/local/bin/phpunit
fi
# TODO(jtattermusch): better debugging of clock skew, remove once not needed

Loading…
Cancel
Save