Skip to content

Commit

Permalink
php8.1 testing
Browse files Browse the repository at this point in the history
  • Loading branch information
brettmc committed Jan 27, 2022
1 parent a78b89e commit 4c03fcf
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
32 changes: 30 additions & 2 deletions kokoro/linux/dockerfile/test/php80/Dockerfile
@@ -1,4 +1,4 @@
FROM debian:jessie
FROM debian:stretch

# Install dependencies. We start with the basic ones require to build protoc
# and the C++ build
Expand Down Expand Up @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y \

# Install php dependencies
RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
php5 \
php \
libcurl4-openssl-dev \
libgmp-dev \
libgmp3-dev \
Expand Down Expand Up @@ -90,6 +90,34 @@ RUN wget -O phpunit https://phar.phpunit.de/phpunit-9.phar \
&& 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 \
Expand Down
6 changes: 6 additions & 0 deletions tests.sh
Expand Up @@ -496,6 +496,8 @@ build_php() {
use_php $1
pushd php
rm -rf vendor
php -v
php -m
composer update
composer test
popd
Expand All @@ -505,6 +507,8 @@ build_php() {
test_php_c() {
pushd php
rm -rf vendor
php -v
php -m
composer update
composer test_c
popd
Expand Down Expand Up @@ -572,7 +576,9 @@ build_php_multirequest() {

build_php8.0_all() {
build_php 8.0
build_php 8.1
build_php_c 8.0
build_php_c 8.1
}

build_php_all_32() {
Expand Down

0 comments on commit 4c03fcf

Please sign in to comment.