-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
443 additions
and
857 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,15 +1,8 @@ | ||
FROM php:7.2-apache AS dom_handler_php | ||
FROM splitbrain/phpfarm:jessie | ||
|
||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | ||
COPY . /var/www/html | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y zip git | ||
RUN apt-get update && apt-get install -y git zip | ||
|
||
ENV COMPOSER_ALLOW_SUPERUSER=1 | ||
|
||
WORKDIR /var/www/html | ||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer | ||
COPY . /var/www/ | ||
|
||
RUN composer self-update \ | ||
&& composer validate \ | ||
&& composer update --prefer-dist --no-scripts --no-progress --no-suggest | ||
WORKDIR /var/www/ |
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,4 +1,5 @@ | ||
vendor/ | ||
vendor | ||
composer.lock | ||
phpunit.xml | ||
.idea | ||
.phpunit.result.cache |
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,30 +1,34 @@ | ||
language: php | ||
|
||
sudo: false | ||
jobs: | ||
include: | ||
- name: 'Tests under PHP 7.4' | ||
php: '7.4' | ||
dist: bionic | ||
- name: 'Tests under PHP 8.0' | ||
php: '8.0' | ||
dist: bionic | ||
- name: 'Tests under PHP nightly' | ||
php: 'nightly' | ||
dist: bionic | ||
|
||
matrix: | ||
include: | ||
- php: 5.3 | ||
dist: precise | ||
|
||
php: | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
- 7.2 | ||
fast_finish: true | ||
allow_failures: | ||
- php: 'nightly' | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
directories: | ||
- $HOME/.composer/cache | ||
|
||
install: | ||
- composer install | ||
- composer install | ||
|
||
script: | ||
- ./vendor/phpunit/phpunit/phpunit --coverage-text --coverage-clover=coverage.clover | ||
- php -dmemory_limit=-1 -dxdebug.mode=coverage ./vendor/phpunit/phpunit/phpunit --coverage-text --coverage-clover=coverage.clover | ||
|
||
after_script: | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php -dmemory_limit=-1 ocular.phar code-coverage:upload --format=php-clover coverage.clover | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) |
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
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,11 +1,10 @@ | ||
version: '3.4' | ||
|
||
services: | ||
php: | ||
build: | ||
context: . | ||
dockerfile: .docker/Dockerfile | ||
target: dom_handler_php | ||
volumes: | ||
- .:/var/www/html:rw | ||
container_name: dom_handler | ||
php: | ||
build: | ||
context: . | ||
dockerfile: .docker/Dockerfile | ||
volumes: | ||
- .:/var/www:rw | ||
container_name: dom_handler |
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,26 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd" | ||
backupGlobals="false" | ||
colors="true" | ||
bootstrap="vendor/autoload.php"> | ||
<php> | ||
<ini name="error_reporting" value="-1" /> | ||
</php> | ||
<testsuites> | ||
<testsuite name="full"> | ||
<directory>./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory>./</directory> | ||
<exclude> | ||
<directory>./tests</directory> | ||
<directory>./vendor</directory> | ||
</exclude> | ||
</whitelist> | ||
</filter> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="vendor/autoload.php"> | ||
<coverage> | ||
<include> | ||
<directory>./</directory> | ||
</include> | ||
<exclude> | ||
<directory>./tests</directory> | ||
<directory>./vendor</directory> | ||
</exclude> | ||
</coverage> | ||
<php> | ||
<ini name="error_reporting" value="-1"/> | ||
</php> | ||
<testsuites> | ||
<testsuite name="full"> | ||
<directory>./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
</phpunit> |
Oops, something went wrong.