Browse Source

Prepare jenkins for testing php zts build.

Bo Yang 9 years ago
parent
commit
3a055be925
1 changed files with 6 additions and 0 deletions
  1. 6 0
      jenkins/docker/Dockerfile

+ 6 - 0
jenkins/docker/Dockerfile

@@ -87,6 +87,7 @@ RUN apt-get clean && apt-get update && apt-get install -y --force-yes \
   php7.0-xml \
   phpunit    \
   valgrind   \
+  libxml2-dev \
   && apt-get clean
 
 ##################
@@ -160,6 +161,11 @@ RUN cd /tmp && \
   ln -sfn /usr/bin/phpize7.0 /usr/bin/phpize && \
   composer install && \
   mv vendor /usr/local/vendor-7.0
+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
 
 ##################
 # Go dependencies.