diff --git a/.travis.yml b/.travis.yml index c5332dc..8c0da53 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -dist: bionic +dist: focal language: php @@ -11,19 +11,13 @@ git: matrix: include: - - php: 7.2 - env: composerargs="--prefer-lowest" - - php: 7.2 - - php: 7.3 - env: composerargs="--prefer-lowest" - - php: 7.3 - php: 7.4 env: composerargs="--prefer-lowest" - php: 7.4 - - php: nightly + - php: 8.0 + env: composerargs="--prefer-lowest --ignore-platform-reqs" + - php: 8.0 env: composerargs="--ignore-platform-reqs" - allow_failures: - - php: nightly before_script: - (phpenv config-rm xdebug.ini || exit 0) diff --git a/README.md b/README.md index 8cd4fe3..513c0cf 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ A simple http handler implementation for API. ## Requirements - * php: ^7.2|^8.0 + * php: ^7.4|^8.0 * chubbyphp/chubbyphp-deserialization: ^3.0 * chubbyphp/chubbyphp-negotiation: ^1.7 * chubbyphp/chubbyphp-serialization: ^3.0 @@ -39,7 +39,7 @@ A simple http handler implementation for API. Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-api-http][1]. ```sh -composer require chubbyphp/chubbyphp-api-http "^4.0" +composer require chubbyphp/chubbyphp-api-http "^4.1" ``` ## Usage diff --git a/composer.json b/composer.json index 0c0206c..32381dd 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": "^7.2|^8.0", + "php": "^7.4|^8.0", "chubbyphp/chubbyphp-deserialization": "^3.0", "chubbyphp/chubbyphp-negotiation": "^1.7", "chubbyphp/chubbyphp-serialization": "^3.0", @@ -23,19 +23,16 @@ "chubbyphp/chubbyphp-container": "^1.1", "chubbyphp/chubbyphp-dev-helper": "dev-master", "chubbyphp/chubbyphp-laminas-config-factory": "^1.0", - "chubbyphp/chubbyphp-mock": "^1.5.1", - "infection/infection": "^0.15.3|^0.18.2|^0.20.2", + "chubbyphp/chubbyphp-mock": "^1.6", + "infection/infection": "^0.20.2", "php-coveralls/php-coveralls": "^2.4.3", - "phploc/phploc": "^5.0|^6.0.2", + "phploc/phploc": "^6.0.2", "phpstan/extension-installer": "^1.1", "phpstan/phpstan": "^0.12.64", - "phpunit/phpunit": "^8.5.13|^9.5", + "phpunit/phpunit": "^9.5", "pimple/pimple": "^3.3", "psr/container": "^1.0" }, - "conflict": { - "composer/composer": "<1.10.16" - }, "autoload": { "psr-4": { "Chubbyphp\\ApiHttp\\": "src/" } }, @@ -47,7 +44,7 @@ }, "extra": { "branch-alias": { - "dev-master": "4.0-dev" + "dev-master": "4.1-dev" } }, "scripts": { @@ -59,12 +56,10 @@ "@test:infection", "@test:static-analysis", "@test:loc", - "@test:cs", - "@test:insights" + "@test:cs" ], "test:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache", "test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=100 --verbose --coverage=build/phpunit", - "test:insights": "mkdir -p build && bash -c 'vendor/bin/phpinsights analyse -v --no-interaction --min-quality=95 --disable-security-check | tee build/phpinsights.log; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'", "test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache", "test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log", "test:loc": "mkdir -p build && vendor/bin/phploc src --verbose | tee build/phploc.log", diff --git a/phpinsights.php b/phpinsights.php deleted file mode 100644 index d41f513..0000000 --- a/phpinsights.php +++ /dev/null @@ -1,8 +0,0 @@ - - + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"> + + + ./src + + ./tests/Integration @@ -17,9 +23,4 @@ ./tests/Unit - - - ./src - -