Skip to content
This repository has been archived by the owner on May 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #54 from JulienBreux/add-version-5.7.0
Browse files Browse the repository at this point in the history
Add version 5.7.0
  • Loading branch information
JulienBreux authored Dec 30, 2016
2 parents 91a5838 + f9830f9 commit 0750a0b
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 1 deletion.
60 changes: 60 additions & 0 deletions 5.7.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# PHPUnit Docker Container.
FROM alpine:edge
MAINTAINER Julien Breux <[email protected]>

ENV PEAR_PACKAGES foo

WORKDIR /tmp

RUN apk --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing add \
bash \
ca-certificates \
git \
curl \
unzip \
php7 \
php7-xml \
php7-zip \
php7-xmlreader \
php7-zlib \
php7-opcache \
php7-mcrypt \
php7-openssl \
php7-curl \
php7-json \
php7-dom \
php7-phar \
php7-mbstring \
php7-bcmath \
php7-pdo \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-pdo_mysql \
php7-soap \
php7-xdebug \
php7-pcntl \
php7-ctype \
php7-session \
&& ln -s /usr/bin/php7 /usr/bin/php \
&& php -r "copy('https://pear.php.net/go-pear.phar', 'go-pear.phar');" \
&& php go-pear.phar \
&& php -r "unlink('go-pear.phar');" \
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php --install-dir=/usr/bin --filename=composer \
&& php -r "unlink('composer-setup.php');" \
&& composer require "phpunit/phpunit:~5.7.5" --prefer-source --no-interaction \
&& composer require "phpunit/php-invoker" --prefer-source --no-interaction \
&& ln -s /tmp/vendor/bin/phpunit /usr/local/bin/phpunit \
&& sed -i 's/nn and/nn, Julien Breux (Docker) and/g' /tmp/vendor/phpunit/phpunit/src/Runner/Version.php \

# Enable X-Debug
&& sed -i 's/\;z/z/g' /etc/php7/conf.d/xdebug.ini \
&& php -m | grep -i xdebug

ONBUILD RUN pear install $PEAR_PACKAGES

VOLUME ["/app"]
WORKDIR /app

ENTRYPOINT ["/usr/local/bin/phpunit"]
CMD ["--help"]
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
build:
docker build --no-cache --rm -t julienbreux/phpunit master
docker build --no-cache --rm -t julienbreux/phpunit:5.7.5 5.7.5
docker build --no-cache --rm -t julienbreux/phpunit:5.7.0 5.7.0
docker build --no-cache --rm -t julienbreux/phpunit:5.5.0 5.5.0
docker build --no-cache --rm -t julienbreux/phpunit:5.4.7 5.4.7
docker build --no-cache --rm -t julienbreux/phpunit:5.4.6 5.4.6
Expand Down Expand Up @@ -38,6 +39,7 @@ build:
version:
docker run -t --rm julienbreux/phpunit --version
docker run -t --rm julienbreux/phpunit:5.7.5 --version
docker run -t --rm julienbreux/phpunit:5.7.0 --version
docker run -t --rm julienbreux/phpunit:5.5.0 --version
docker run -t --rm julienbreux/phpunit:5.4.7 --version
docker run -t --rm julienbreux/phpunit:5.4.6 --version
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* [PHPUnit](https://www.phpunit.de/)
* Latest snapshot (master)
* [`5.7.5`](https://github.com/sebastianbergmann/phpunit/blob/5.7/ChangeLog-5.7.md)
* [`5.7.0`](https://github.com/sebastianbergmann/phpunit/blob/5.7/ChangeLog-5.7.md)
* [`5.5.0`](https://github.com/sebastianbergmann/phpunit/blob/5.5/ChangeLog-5.5.md)
* [`5.4.7`](https://github.com/sebastianbergmann/phpunit/blob/5.4/ChangeLog-5.4.md)
* [`5.4.6`](https://github.com/sebastianbergmann/phpunit/blob/5.4/ChangeLog-5.4.md)
Expand Down
1 change: 1 addition & 0 deletions settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ php:
version: 7.0
versions:
- 5.7.5
- 5.7.0
- 5.5.0
- 5.4.7
- 5.4.6
Expand Down
1 change: 0 additions & 1 deletion templates/Dockerfile.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ RUN apk --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testin
curl \
unzip \
php7 \
php7-ctype \
php7-xml \
php7-zip \
php7-xmlreader \
Expand Down

0 comments on commit 0750a0b

Please sign in to comment.