This repository has been archived by the owner on Aug 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from andreskrey/development
v2.1
- Loading branch information
Showing
127 changed files
with
3,076 additions
and
462 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,20 +1,48 @@ | ||
language: php | ||
language: bash | ||
services: docker | ||
|
||
before_install: | ||
- apt-cache policy libxml2 | ||
env: | ||
matrix: | ||
- PHP_VERSION=7.3 LIBXML_VERSION=2.9.9 | ||
- PHP_VERSION=7.3 LIBXML_VERSION=2.9.8 | ||
- PHP_VERSION=7.3 LIBXML_VERSION=2.9.7 | ||
- PHP_VERSION=7.3 LIBXML_VERSION=2.9.6 | ||
- PHP_VERSION=7.3 LIBXML_VERSION=2.9.5 | ||
- PHP_VERSION=7.3 LIBXML_VERSION=2.9.4 | ||
- PHP_VERSION=7.2 LIBXML_VERSION=2.9.9 | ||
- PHP_VERSION=7.2 LIBXML_VERSION=2.9.8 | ||
- PHP_VERSION=7.2 LIBXML_VERSION=2.9.7 | ||
- PHP_VERSION=7.2 LIBXML_VERSION=2.9.6 | ||
- PHP_VERSION=7.2 LIBXML_VERSION=2.9.5 | ||
- PHP_VERSION=7.2 LIBXML_VERSION=2.9.4 | ||
- PHP_VERSION=7.1 LIBXML_VERSION=2.9.9 | ||
- PHP_VERSION=7.1 LIBXML_VERSION=2.9.8 | ||
- PHP_VERSION=7.1 LIBXML_VERSION=2.9.7 | ||
- PHP_VERSION=7.1 LIBXML_VERSION=2.9.6 | ||
- PHP_VERSION=7.1 LIBXML_VERSION=2.9.5 | ||
- PHP_VERSION=7.1 LIBXML_VERSION=2.9.4 | ||
- PHP_VERSION=7.0 LIBXML_VERSION=2.9.9 | ||
- PHP_VERSION=7.0 LIBXML_VERSION=2.9.8 | ||
- PHP_VERSION=7.0 LIBXML_VERSION=2.9.7 | ||
- PHP_VERSION=7.0 LIBXML_VERSION=2.9.6 | ||
- PHP_VERSION=7.0 LIBXML_VERSION=2.9.5 | ||
- PHP_VERSION=7.0 LIBXML_VERSION=2.9.4 | ||
|
||
install: | ||
- composer install | ||
matrix: | ||
allow_failures: | ||
- env: LIBXML_VERSION=2.9.9 | ||
- env: LIBXML_VERSION=2.9.8 | ||
- env: LIBXML_VERSION=2.9.7 | ||
- env: LIBXML_VERSION=2.9.6 | ||
- env: LIBXML_VERSION=2.9.5 | ||
|
||
php: | ||
- "7.0" | ||
- "7.1" | ||
- "7.2" | ||
- "7.3" | ||
install: | ||
- docker run --rm --volume $PWD:/app --workdir="/app" composer install | ||
|
||
script: | ||
- ./vendor/bin/phpunit --coverage-clover ./test/clover.xml | ||
- docker build --build-arg PHP_VERSION=${PHP_VERSION} --build-arg LIBXML_VERSION=${LIBXML_VERSION} -t travis-build - < ./docker/php/Dockerfile | ||
- docker run --volume $PWD:/app --workdir="/app" travis-build php ./vendor/bin/phpunit --coverage-clover /app/test/clover.xml | ||
|
||
after_script: | ||
- composer require php-coveralls/php-coveralls:^2.0 | ||
- php ./vendor/php-coveralls/php-coveralls/bin/php-coveralls -v | ||
- docker run --volume $PWD:/app --workdir="/app" composer require php-coveralls/php-coveralls:^2.0 | ||
- docker run --volume $PWD:/app --workdir="/app" --env TRAVIS=${TRAVIS} --env TRAVIS_JOB_ID=${TRAVIS_JOB_ID} travis-build php ./vendor/php-coveralls/php-coveralls/bin/php-coveralls -v |
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,4 @@ The AUTHORS/Contributors are (and/or have been): | |
* Andres Rey | ||
* Sergiy Lavryk | ||
* Pedro Amorim | ||
* Malu Decks |
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 |
---|---|---|
@@ -1,15 +1,30 @@ | ||
.PHONY: test-all test-7.2 test-7.1 test-7.0 | ||
.PHONY: test-all | ||
|
||
test-all: start test-7.2 test-7.1 test-7.0 | ||
test-all: start test-7.3 test-7.2 test-7.1 test-7.0 stop | ||
|
||
test-7.3: | ||
docker-compose exec php-7.3-libxml-2.9.9 php /app/vendor/phpunit/phpunit/phpunit --configuration /app/phpunit.xml | ||
|
||
test-7.2: | ||
docker-compose exec php-7.2 php /app/vendor/phpunit/phpunit/phpunit --configuration /app/phpunit.xml | ||
docker-compose exec php-7.2-libxml-2.9.9 php /app/vendor/phpunit/phpunit/phpunit --configuration /app/phpunit.xml | ||
|
||
test-7.1: | ||
docker-compose exec php-7.1 php /app/vendor/phpunit/phpunit/phpunit --configuration /app/phpunit.xml | ||
docker-compose exec php-7.1-libxml-2.9.9 php /app/vendor/phpunit/phpunit/phpunit --configuration /app/phpunit.xml | ||
|
||
test-7.0: | ||
docker-compose exec php-7.0 php /app/vendor/phpunit/phpunit/phpunit --configuration /app/phpunit.xml | ||
docker-compose exec php-7.0-libxml-2.9.9 php /app/vendor/phpunit/phpunit/phpunit --configuration /app/phpunit.xml | ||
|
||
start: | ||
docker-compose up -d | ||
docker-compose up -d php-7.3-libxml-2.9.9 php-7.2-libxml-2.9.9 php-7.1-libxml-2.9.9 php-7.0-libxml-2.9.9 | ||
|
||
stop: | ||
docker-compose stop | ||
|
||
test-all-versions: | ||
for php_version in 7.0 7.1 7.2 7.3; do \ | ||
for libxml_version in 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8 2.9.9; do \ | ||
docker-compose up -d php-$$php_version-libxml-$$libxml_version; \ | ||
docker-compose exec php-$$php_version-libxml-$$libxml_version php /app/vendor/phpunit/phpunit/phpunit --configuration /app/phpunit.xml; \ | ||
done \ | ||
done | ||
docker-compose stop |
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 |
---|---|---|
@@ -1,20 +1,196 @@ | ||
version: '3' | ||
|
||
services: | ||
php-7.0: | ||
build: ./docker/php-7.0 | ||
php-7.0-libxml-2.9.4: &template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.4 | ||
PHP_VERSION: 7.0 | ||
volumes: | ||
- ./:/app | ||
tty: true | ||
|
||
php-7.1: | ||
build: ./docker/php-7.1 | ||
volumes: | ||
- ./:/app | ||
tty: true | ||
php-7.0-libxml-2.9.5: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.5 | ||
PHP_VERSION: 7.0 | ||
|
||
php-7.2: | ||
build: ./docker/php-7.2 | ||
volumes: | ||
- ./:/app | ||
tty: true | ||
php-7.0-libxml-2.9.6: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.6 | ||
PHP_VERSION: 7.0 | ||
|
||
php-7.0-libxml-2.9.7: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.7 | ||
PHP_VERSION: 7.0 | ||
|
||
php-7.0-libxml-2.9.8: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.8 | ||
PHP_VERSION: 7.0 | ||
|
||
php-7.0-libxml-2.9.9: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.9 | ||
PHP_VERSION: 7.0 | ||
|
||
php-7.1-libxml-2.9.4: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.4 | ||
PHP_VERSION: 7.1 | ||
|
||
php-7.1-libxml-2.9.5: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.5 | ||
PHP_VERSION: 7.1 | ||
|
||
php-7.1-libxml-2.9.6: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.6 | ||
PHP_VERSION: 7.1 | ||
|
||
php-7.1-libxml-2.9.7: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.7 | ||
PHP_VERSION: 7.1 | ||
|
||
php-7.1-libxml-2.9.8: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.8 | ||
PHP_VERSION: 7.1 | ||
|
||
php-7.1-libxml-2.9.9: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.9 | ||
PHP_VERSION: 7.1 | ||
|
||
php-7.2-libxml-2.9.4: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.4 | ||
PHP_VERSION: 7.2 | ||
|
||
php-7.2-libxml-2.9.5: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.5 | ||
PHP_VERSION: 7.2 | ||
|
||
php-7.2-libxml-2.9.6: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.6 | ||
PHP_VERSION: 7.2 | ||
|
||
php-7.2-libxml-2.9.7: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.7 | ||
PHP_VERSION: 7.2 | ||
|
||
php-7.2-libxml-2.9.8: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.8 | ||
PHP_VERSION: 7.2 | ||
|
||
php-7.2-libxml-2.9.9: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.9 | ||
PHP_VERSION: 7.2 | ||
|
||
php-7.3-libxml-2.9.4: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.4 | ||
PHP_VERSION: 7.3 | ||
|
||
php-7.3-libxml-2.9.5: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.5 | ||
PHP_VERSION: 7.3 | ||
|
||
php-7.3-libxml-2.9.6: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.6 | ||
PHP_VERSION: 7.3 | ||
|
||
php-7.3-libxml-2.9.7: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.7 | ||
PHP_VERSION: 7.3 | ||
|
||
php-7.3-libxml-2.9.8: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.8 | ||
PHP_VERSION: 7.3 | ||
|
||
php-7.3-libxml-2.9.9: | ||
<<: *template | ||
build: | ||
context: ./docker/php | ||
args: | ||
LIBXML_VERSION: 2.9.9 | ||
PHP_VERSION: 7.3 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,8 @@ | ||
ARG PHP_VERSION | ||
ARG LIBXML_VERSION | ||
FROM andreskrey/php-${PHP_VERSION}:libxml-${LIBXML_VERSION} | ||
|
||
RUN pecl install xdebug && docker-php-ext-enable xdebug | ||
|
||
# Required by coveralls | ||
RUN apt-get install git -y |
Oops, something went wrong.