Skip to content

Commit

Permalink
php min version 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Zogg committed Jan 3, 2021
1 parent 1abffb7 commit fdc9db1
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 39 deletions.
14 changes: 4 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dist: bionic
dist: focal

language: php

Expand All @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
19 changes: 7 additions & 12 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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/" }
},
Expand All @@ -47,7 +44,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "4.0-dev"
"dev-master": "4.1-dev"
}
},
"scripts": {
Expand All @@ -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",
Expand Down
8 changes: 0 additions & 8 deletions phpinsights.php

This file was deleted.

15 changes: 8 additions & 7 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
Expand All @@ -8,7 +9,12 @@
executionOrder="random"
processIsolation="false"
stopOnFailure="false"
>
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory>./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Integration">
<directory>./tests/Integration</directory>
Expand All @@ -17,9 +23,4 @@
<directory>./tests/Unit</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>./src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit fdc9db1

Please sign in to comment.