-
Notifications
You must be signed in to change notification settings - Fork 356
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop HHVM support + sync docker conf with Travis
- Loading branch information
Jérôme Parmentier
committed
Oct 3, 2017
1 parent
b30754b
commit 382bcf7
Showing
19 changed files
with
249 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
.idea/ | ||
bin/tests-all | ||
doc/ | ||
docker/ | ||
vendor/ | ||
.dockerignore | ||
.editorconfig | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
FROM php:5.6-alpine | ||
|
||
ENV SRC_DIR /usr/src/gaufrette | ||
|
||
RUN apk add --no-cache --virtual .persistent-deps \ | ||
git \ | ||
zlib | ||
|
||
# PHP extensions | ||
ENV MONGODB_VERSION="1.2.11" \ | ||
SSH2_VERSION="0.13" | ||
|
||
RUN set -xe \ | ||
&& apk add --no-cache --virtual .build-deps \ | ||
$PHPIZE_DEPS \ | ||
libssh2-dev \ | ||
zlib-dev \ | ||
&& docker-php-ext-install \ | ||
zip \ | ||
&& pecl install \ | ||
mongodb-${MONGODB_VERSION} \ | ||
ssh2-${SSH2_VERSION} \ | ||
&& docker-php-ext-enable --ini-name 05-opcache.ini opcache \ | ||
&& docker-php-ext-enable \ | ||
mongodb \ | ||
ssh2 \ | ||
&& apk del .build-deps | ||
|
||
COPY docker/php.ini /usr/local/etc/php/php.ini | ||
|
||
COPY docker/install-composer.sh /usr/local/bin/install-composer | ||
RUN chmod +x /usr/local/bin/install-composer | ||
|
||
RUN set -xe \ | ||
&& install-composer \ | ||
&& mv composer.phar /usr/local/bin/composer | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
|
||
RUN composer global require "hirak/prestissimo" --prefer-dist --no-progress --no-suggest --optimize-autoloader --apcu-autoloader \ | ||
&& composer clear-cache | ||
|
||
WORKDIR ${SRC_DIR} | ||
|
||
COPY composer.json ./ | ||
RUN composer update --prefer-dist --no-autoloader --no-scripts --no-progress --no-suggest \ | ||
&& composer clear-cache | ||
|
||
COPY spec spec/ | ||
COPY src src/ | ||
COPY tests tests/ | ||
COPY bin/tests bin/tests | ||
|
||
RUN composer dump-autoload | ||
|
||
CMD ["bin/tests"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
FROM php:7.0-alpine | ||
|
||
ENV SRC_DIR /usr/src/gaufrette | ||
|
||
RUN apk add --no-cache --virtual .persistent-deps \ | ||
git \ | ||
zlib | ||
|
||
# PHP extensions | ||
ENV MONGODB_VERSION="1.2.11" \ | ||
SSH2_VERSION="1.1.2" | ||
|
||
RUN set -xe \ | ||
&& apk add --no-cache --virtual .build-deps \ | ||
$PHPIZE_DEPS \ | ||
libssh2-dev \ | ||
zlib-dev \ | ||
&& docker-php-ext-install \ | ||
zip \ | ||
&& pecl install \ | ||
mongodb-${MONGODB_VERSION} \ | ||
ssh2-${SSH2_VERSION} \ | ||
&& docker-php-ext-enable --ini-name 05-opcache.ini opcache \ | ||
&& docker-php-ext-enable \ | ||
mongodb \ | ||
ssh2 \ | ||
&& apk del .build-deps | ||
|
||
COPY php.ini /usr/local/etc/php/php.ini | ||
|
||
COPY install-composer.sh /usr/local/bin/docker-gaufrette-install-composer | ||
RUN chmod +x /usr/local/bin/docker-gaufrette-install-composer | ||
|
||
RUN set -xe \ | ||
&& apk add --no-cache --virtual .fetch-deps \ | ||
openssl \ | ||
&& docker-gaufrette-install-composer \ | ||
&& mv composer.phar /usr/local/bin/composer \ | ||
&& apk del .fetch-deps | ||
|
||
COPY docker/php.ini /usr/local/etc/php/php.ini | ||
|
||
COPY docker/install-composer.sh /usr/local/bin/install-composer | ||
RUN chmod +x /usr/local/bin/install-composer | ||
|
||
RUN set -xe \ | ||
&& install-composer \ | ||
&& mv composer.phar /usr/local/bin/composer | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
|
||
RUN composer global require "hirak/prestissimo" --prefer-dist --no-progress --no-suggest --optimize-autoloader --apcu-autoloader \ | ||
&& composer clear-cache | ||
|
||
WORKDIR ${SRC_DIR} | ||
|
||
COPY composer.json ./ | ||
RUN composer update --prefer-dist --no-autoloader --no-scripts --no-progress --no-suggest \ | ||
&& composer clear-cache | ||
|
||
COPY spec spec/ | ||
COPY src src/ | ||
COPY tests tests/ | ||
COPY bin/tests bin/tests | ||
|
||
RUN composer dump-autoload | ||
|
||
CMD ["bin/tests"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
FROM php:7.1-alpine | ||
|
||
ENV SRC_DIR /usr/src/gaufrette | ||
|
||
RUN apk add --no-cache --virtual .persistent-deps \ | ||
git \ | ||
zlib | ||
|
||
# PHP extensions | ||
ENV MONGODB_VERSION="1.2.11" \ | ||
SSH2_VERSION="1.1.2" | ||
|
||
RUN set -xe \ | ||
&& apk add --no-cache --virtual .build-deps \ | ||
$PHPIZE_DEPS \ | ||
libssh2-dev \ | ||
zlib-dev \ | ||
&& docker-php-ext-install \ | ||
zip \ | ||
&& pecl install \ | ||
mongodb-${MONGODB_VERSION} \ | ||
ssh2-${SSH2_VERSION} \ | ||
&& docker-php-ext-enable --ini-name 05-opcache.ini opcache \ | ||
&& docker-php-ext-enable \ | ||
mongodb \ | ||
ssh2 \ | ||
&& apk del .build-deps | ||
|
||
COPY docker/php.ini /usr/local/etc/php/php.ini | ||
|
||
COPY docker/install-composer.sh /usr/local/bin/install-composer | ||
RUN chmod +x /usr/local/bin/install-composer | ||
|
||
RUN set -xe \ | ||
&& install-composer \ | ||
&& mv composer.phar /usr/local/bin/composer | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER 1 | ||
|
||
RUN composer global require "hirak/prestissimo" --prefer-dist --no-progress --no-suggest --optimize-autoloader --apcu-autoloader \ | ||
&& composer clear-cache | ||
|
||
WORKDIR ${SRC_DIR} | ||
|
||
COPY composer.json ./ | ||
RUN composer update --prefer-dist --no-autoloader --no-scripts --no-progress --no-suggest \ | ||
&& composer clear-cache | ||
|
||
COPY spec spec/ | ||
COPY src src/ | ||
COPY tests tests/ | ||
COPY bin/tests bin/tests | ||
|
||
RUN composer dump-autoload | ||
|
||
CMD ["bin/tests"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
set -o nounset | ||
set -o errexit | ||
set -o xtrace | ||
|
||
DIR=$(dirname ${BASH_SOURCE[0]})/.. | ||
DIR=$(dirname $0)/.. | ||
|
||
${DIR}/vendor/bin/phpspec run --format=pretty | ||
${DIR}/vendor/bin/phpunit | ||
${DIR}/vendor/bin/phpunit tests | ||
${DIR}/vendor/bin/phpspec run --format=pretty --no-code-generation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
#!/bin/bash | ||
#!/bin/sh | ||
|
||
set -o xtrace | ||
|
||
docker-compose run --rm php56 | ||
docker-compose run --rm php70 | ||
docker-compose run --rm php71 | ||
docker-compose run --rm hhvm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.