Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Commit

Permalink
Merge pull request #53 from ergebnis/fix/php7.1
Browse files Browse the repository at this point in the history
Fix: Bring back support for PHP 7.1
  • Loading branch information
localheinz authored Dec 19, 2019
2 parents 76494d9 + 427d6c3 commit 0279214
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 192 deletions.
5 changes: 4 additions & 1 deletion .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ branches:
required_approving_review_count: 1
required_status_checks:
contexts:
- "Coding Standards (7.2, locked)"
- "Coding Standards (7.1, locked)"
- "Dependency Analysis (7.4, locked)"
- "Static Code Analysis (7.4, locked)"
- "Tests (7.1, lowest)"
- "Tests (7.1, locked)"
- "Tests (7.1, highest)"
- "Tests (7.2, lowest)"
- "Tests (7.2, locked)"
- "Tests (7.2, highest)"
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
php-version:
- 7.2
- 7.1

dependencies:
- locked
Expand Down Expand Up @@ -152,6 +152,7 @@ jobs:
strategy:
matrix:
php-version:
- 7.1
- 7.2
- 7.3
- 7.4
Expand Down Expand Up @@ -221,7 +222,7 @@ jobs:
- name: "Install PHP with extensions"
uses: shivammathur/[email protected]
with:
coverage: pcov
coverage: xdebug
extensions: "mbstring"
php-version: ${{ matrix.php-version }}

Expand All @@ -236,8 +237,11 @@ jobs:
- name: "Install locked dependencies with composer"
run: composer install --no-interaction --no-progress --no-suggest

- name: "Collect code coverage with pcov and phpunit/phpunit"
run: vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-clover=.build/logs/clover.xml
- name: "Dump Xdebug filter with phpunit/phpunit"
run: vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --dump-xdebug-filter=.build/phpunit/xdebug-filter.php

- name: "Collect code coverage with Xdebug and phpunit/phpunit"
run: vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-clover=build/logs/clover.xml --prepend=.build/phpunit/xdebug-filter.php

- name: "Send code coverage report to Codecov.io"
env:
Expand All @@ -264,7 +268,7 @@ jobs:
- name: "Install PHP with extensions"
uses: shivammathur/[email protected]
with:
coverage: pcov
coverage: xdebug
extensions: "mbstring"
php-version: ${{ matrix.php-version }}

Expand All @@ -279,5 +283,5 @@ jobs:
- name: "Install locked dependencies with composer"
run: composer install --no-interaction --no-progress --no-suggest

- name: "Run mutation tests with pcov and infection/infection"
run: vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=96 --min-msi=92
- name: "Run mutation tests with Xdebug and infection/infection"
run: vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=94 --min-msi=94
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

For a full diff see [`2.0.0...master`][2.0.0...master].
For a full diff see [`2.0.1...master`][2.0.1...master].

## [`2.0.1`][2.0.1]

For a full diff see [`2.0.0...2.0.1`][2.0.0...2.0.1].

### Fixed

* Brought back support for PHP 7.1 ([#53]), by [@localheinz]

## [`2.0.0`][2.0.0]

Expand Down Expand Up @@ -83,12 +91,14 @@ For a full diff see [`149a393...1.0.0`][149a393...1.0.0].
[1.0.1]: https://github.com/ergebnis/composer-json-normalizer/releases/tag/1.0.1
[1.0.2]: https://github.com/ergebnis/composer-json-normalizer/releases/tag/1.0.2
[2.0.0]: https://github.com/ergebnis/composer-json-normalizer/releases/tag/2.0.0
[2.0.1]: https://github.com/ergebnis/composer-json-normalizer/releases/tag/2.0.1

[149a393...1.0.0]: https://github.com/ergebnis/composer-json-normalizer/compare/149a393...1.0.0
[1.0.0...1.0.1]: https://github.com/ergebnis/composer-json-normalizer/compare/1.0.0...1.0.1
[1.0.1...1.0.2]: https://github.com/ergebnis/composer-json-normalizer/compare/1.0.1...1.0.2
[1.0.2...2.0.0]: https://github.com/ergebnis/composer-json-normalizer/compare/1.0.2...2.0.0
[2.0.0...master]: https://github.com/ergebnis/composer-json-normalizer/compare/2.0.0...master
[2.0.0...2.0.1]: https://github.com/ergebnis/composer-json-normalizer/compare/2.0.0...2.0.1
[2.0.1...master]: https://github.com/ergebnis/composer-json-normalizer/compare/2.0.1...master

[#1]: https://github.com/ergebnis/composer-json-normalizer/pull/1
[#2]: https://github.com/ergebnis/composer-json-normalizer/pull/2
Expand All @@ -98,6 +108,7 @@ For a full diff see [`149a393...1.0.0`][149a393...1.0.0].
[#44]: https://github.com/ergebnis/composer-json-normalizer/pull/44
[#45]: https://github.com/ergebnis/composer-json-normalizer/pull/45
[#47]: https://github.com/ergebnis/composer-json-normalizer/pull/47
[#53]: https://github.com/ergebnis/composer-json-normalizer/pull/53

[@ergebnis]: https://github.com/ergebnis
[@localheinz]: https://github.com/localheinz
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ it: coding-standards dependency-analysis static-code-analysis tests ## Runs the

.PHONY: code-coverage
code-coverage: vendor ## Collects coverage from running unit tests with phpunit/phpunit
vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-text
mkdir -p .build/phpunit
vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --dump-xdebug-filter=.build/phpunit/xdebug-filter.php
vendor/bin/phpunit --configuration=test/Unit/phpunit.xml --coverage-text --prepend=.build/phpunit/xdebug-filter.php

.PHONY: coding-standards
coding-standards: vendor ## Fixes code style issues with friendsofphp/php-cs-fixer
Expand All @@ -21,7 +23,7 @@ help: ## Displays this list of targets with descriptions
.PHONY: mutation-tests
mutation-tests: vendor ## Runs mutation tests with infection/infection
mkdir -p .build/infection
vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=96 --min-msi=92
vendor/bin/infection --ignore-msi-with-no-mutations --min-covered-msi=94 --min-msi=94

.PHONY: static-code-analysis
static-code-analysis: vendor ## Runs a static code analysis with phpstan/phpstan
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
}
],
"require": {
"php": "^7.2",
"php": "^7.1",
"ext-json": "*",
"ergebnis/json-normalizer": "~0.10.0",
"ergebnis/json-normalizer": "~0.10.1",
"justinrainbow/json-schema": "^4.0.0 || ^5.0.0"
},
"require-dev": {
Expand All @@ -31,7 +31,7 @@
"phpstan/phpstan": "~0.11.19",
"phpstan/phpstan-deprecation-rules": "~0.11.2",
"phpstan/phpstan-strict-rules": "~0.11.1",
"phpunit/phpunit": "^8.5.0"
"phpunit/phpunit": "^7.5.18"
},
"config": {
"preferred-install": "dist",
Expand Down
Loading

0 comments on commit 0279214

Please sign in to comment.