-
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.
Add container for every supported php version
- Loading branch information
1 parent
71e7c53
commit 9ad673b
Showing
16 changed files
with
230 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.idea/ | ||
bin/tests-all | ||
doc/ | ||
docker/ | ||
vendor/ | ||
.dockerignore | ||
.editorconfig | ||
.gitignore | ||
.travis.yml | ||
appveyor.yml | ||
composer.lock | ||
docker-compose.yml | ||
LICENSE | ||
README.md |
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 |
---|---|---|
|
@@ -10,3 +10,6 @@ insert_final_newline = true | |
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
indent_size = 2 |
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,9 @@ | ||
bin/* | ||
!bin/tests | ||
!bin/tests-all | ||
doc/.couscous | ||
tests/adapters/* | ||
!tests/adapters/*.dist | ||
vendor/ | ||
composer.lock | ||
phpunit.xml | ||
tests/adapters/* | ||
!tests/adapters/*.dist | ||
bin/* | ||
!bin/configure_test_env.sh | ||
doc/.couscous |
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
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,14 @@ | ||
#!/bin/bash | ||
|
||
set -o nounset | ||
set -o errexit | ||
set -o xtrace | ||
|
||
DIR=$(dirname ${BASH_SOURCE[0]})/.. | ||
|
||
cp \ | ||
${DIR}/tests/Gaufrette/Functional/adapters/DoctrineDbal.php.dist \ | ||
${DIR}/tests/Gaufrette/Functional/adapters/DoctrineDbal.php | ||
|
||
${DIR}/vendor/bin/phpspec run --format=pretty | ||
${DIR}/vendor/bin/phpunit |
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,10 @@ | ||
#!/bin/bash | ||
|
||
set -o xtrace | ||
|
||
docker-compose run --rm php54 | ||
docker-compose run --rm php55 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,8 +68,5 @@ | |
"branch-alias": { | ||
"dev-master": "0.4.x-dev" | ||
} | ||
}, | ||
"config": { | ||
"bin-dir": "bin" | ||
} | ||
} |
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,32 @@ | ||
version: '2' | ||
|
||
services: | ||
php54: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile-php54 | ||
|
||
php55: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile-php55 | ||
|
||
php56: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile-php56 | ||
|
||
php70: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile-php70 | ||
|
||
php71: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile-php71 | ||
|
||
hhvm: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM webdevops/hhvm:ubuntu-16.04 | ||
|
||
ENV SRC_DIR /usr/src/gaufrette | ||
WORKDIR ${SRC_DIR} | ||
|
||
COPY composer.json ${SRC_DIR}/ | ||
RUN composer global require hirak/prestissimo && \ | ||
composer remove --dev --no-update herzult/php-ssh && \ | ||
composer update --prefer-lowest --prefer-stable && \ | ||
composer require microsoft/windowsazure:~0.5 && \ | ||
rm -rf ~/.composer/cache/* | ||
|
||
VOLUME ${SRC_DIR}/vendor | ||
|
||
COPY . ${SRC_DIR}/ | ||
CMD "${SRC_DIR}/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,22 @@ | ||
FROM jolicode/php54:latest | ||
|
||
ENV SRC_DIR /usr/src/gaufrette | ||
WORKDIR ${SRC_DIR}/ | ||
|
||
RUN sudo apt-get update && \ | ||
sudo apt-get install -y libssh2-1-dev && \ | ||
sudo rm -rf /var/lib/apt/lists/* && \ | ||
pecl install mongo ssh2 | ||
|
||
COPY composer.json ${SRC_DIR}/ | ||
RUN sudo chown -R travis ${SRC_DIR} && \ | ||
composer global require hirak/prestissimo && \ | ||
composer install --prefer-dist && \ | ||
rm -rf ~/.composer/cache/* | ||
|
||
VOLUME ${SRC_DIR}/vendor | ||
|
||
COPY . ${SRC_DIR}/ | ||
RUN sudo chown -R travis ${SRC_DIR} | ||
|
||
CMD "${SRC_DIR}/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,22 @@ | ||
FROM jolicode/php55:latest | ||
|
||
ENV SRC_DIR /usr/src/gaufrette | ||
WORKDIR ${SRC_DIR}/ | ||
|
||
RUN sudo apt-get update && \ | ||
sudo apt-get install -y libssh2-1-dev && \ | ||
sudo rm -rf /var/lib/apt/lists/* && \ | ||
pecl install mongo ssh2 | ||
|
||
COPY composer.json ${SRC_DIR}/ | ||
RUN sudo chown -R travis ${SRC_DIR} && \ | ||
composer global require hirak/prestissimo && \ | ||
composer install --prefer-dist && \ | ||
rm -rf ~/.composer/cache/* | ||
|
||
VOLUME ${SRC_DIR}/vendor | ||
|
||
COPY . ${SRC_DIR}/ | ||
RUN sudo chown -R travis ${SRC_DIR} | ||
|
||
CMD "${SRC_DIR}/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,23 @@ | ||
FROM jolicode/php56:latest | ||
|
||
ENV SRC_DIR /usr/src/gaufrette | ||
WORKDIR ${SRC_DIR}/ | ||
|
||
RUN sudo apt-get update && \ | ||
sudo apt-get install -y libssh2-1-dev && \ | ||
sudo rm -rf /var/lib/apt/lists/* && \ | ||
pecl install mongo ssh2 | ||
|
||
COPY composer.json ${SRC_DIR}/ | ||
RUN sudo chown -R travis ${SRC_DIR} && \ | ||
composer global require hirak/prestissimo && \ | ||
composer update --prefer-lowest --prefer-stable && \ | ||
composer require microsoft/windowsazure:~0.4.3 && \ | ||
rm -rf ~/.composer/cache/* | ||
|
||
VOLUME ${SRC_DIR}/vendor | ||
|
||
COPY . ${SRC_DIR}/ | ||
RUN sudo chown -R travis ${SRC_DIR} | ||
|
||
CMD "${SRC_DIR}/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,28 @@ | ||
FROM php:7.0-cli | ||
|
||
ENV SRC_DIR /usr/src/gaufrette | ||
WORKDIR ${SRC_DIR} | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
git \ | ||
libssh2-1-dev \ | ||
libssl-dev \ | ||
unzip \ | ||
zlib1g-dev \ | ||
&& rm -rf /var/lib/apt/lists/* && \ | ||
pecl install mongodb ssh2-alpha zip && \ | ||
echo 'extension=/usr/local/lib/php/extensions/no-debug-non-zts-20151012/mongodb.so' >> /usr/local/etc/php/conf.d/mongodb.ini && \ | ||
echo 'extension=/usr/local/lib/php/extensions/no-debug-non-zts-20151012/ssh2.so' >> /usr/local/etc/php/conf.d/ssh2.ini && \ | ||
echo 'extension=/usr/local/lib/php/extensions/no-debug-non-zts-20151012/zip.so' >> /usr/local/etc/php/conf.d/zip.ini | ||
|
||
COPY composer.json ${SRC_DIR}/ | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ | ||
composer install && \ | ||
composer require microsoft/windowsazure:dev-master && \ | ||
rm -rf ~/.composer/cache/* | ||
|
||
VOLUME ${SRC_DIR}/vendor | ||
|
||
COPY . ${SRC_DIR}/ | ||
CMD "${SRC_DIR}/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,29 @@ | ||
FROM php:7.1-cli | ||
|
||
ENV SRC_DIR /usr/src/gaufrette | ||
WORKDIR ${SRC_DIR} | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
git \ | ||
libssh2-1-dev \ | ||
libssl-dev \ | ||
unzip \ | ||
zlib1g-dev \ | ||
&& rm -rf /var/lib/apt/lists/* && \ | ||
pecl install mongodb ssh2-alpha zip && \ | ||
echo 'extension=/usr/local/lib/php/extensions/no-debug-non-zts-20160303/mongodb.so' >> /usr/local/etc/php/conf.d/mongodb.ini && \ | ||
echo 'extension=/usr/local/lib/php/extensions/no-debug-non-zts-20160303/ssh2.so' >> /usr/local/etc/php/conf.d/ssh2.ini && \ | ||
echo 'extension=/usr/local/lib/php/extensions/no-debug-non-zts-20160303/zip.so' >> /usr/local/etc/php/conf.d/zip.ini | ||
|
||
COPY composer.json ${SRC_DIR}/ | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ | ||
composer global require hirak/prestissimo && \ | ||
composer update --prefer-lowest --prefer-stable && \ | ||
composer require microsoft/windowsazure:~0.5 && \ | ||
rm -rf ~/.composer/cache/* | ||
|
||
VOLUME ${SRC_DIR}/vendor | ||
|
||
COPY . ${SRC_DIR}/ | ||
CMD "${SRC_DIR}/bin/tests" |