Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
204d8f5
Setup project
XedinUnknown Jun 12, 2021
3761d70
Remove debug output from readme
XedinUnknown Jun 12, 2021
2ca099d
Add test bootstrap
XedinUnknown Jun 12, 2021
0e694c0
Install lowest deps on PHP 5.5 only
XedinUnknown Jun 12, 2021
979e652
Correct paths for PHP linting
XedinUnknown Jun 15, 2021
0fc3519
Use multiline list
XedinUnknown Jun 15, 2021
7144cc0
Build on PHP 5.3 and 5.4 as well
XedinUnknown Jun 15, 2021
3d05564
Allow PHP 5.3
XedinUnknown Jun 15, 2021
2483bc1
Allow PHP 5.3 builds to fail
XedinUnknown Jun 15, 2021
2244ac3
Add reference to original decision
XedinUnknown Jun 15, 2021
27983cb
Add missing flag
XedinUnknown Jun 15, 2021
565ac1f
Fix variable syntax
XedinUnknown Jun 15, 2021
dd24382
Fix variable value syntax
XedinUnknown Jun 15, 2021
ab60fe5
Revert "Fix variable value syntax"
XedinUnknown Jun 15, 2021
fbba893
Add include for all extra variables used
XedinUnknown Jun 15, 2021
8e8af9c
Remove potential var name ambiguity
XedinUnknown Jun 15, 2021
5cba562
Declare PHP 5.3 builds as experimental
XedinUnknown Jun 15, 2021
678efac
Add PHPCS
XedinUnknown Jun 17, 2021
1af7bce
Downgrade PHPCS to 2.x on PHP 5.3
XedinUnknown Jun 17, 2021
98262e4
Downgrading corrected
XedinUnknown Jun 17, 2021
1446ab7
Downgrading corrected further
XedinUnknown Jun 17, 2021
3c85dd6
Downgrading corrected even further
XedinUnknown Jun 17, 2021
7c710dc
Downgrading corrected even further
XedinUnknown Jun 17, 2021
5601586
Do not run PHPCS on PHP 5.3
XedinUnknown Jun 17, 2021
e2c8d2c
PHP 5.3 is no longer experimental
XedinUnknown Jun 17, 2021
21c4fba
Correct PHP 5.4 include
XedinUnknown Jun 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.gitattributes export-ignore
.gitignore export-ignore
composer.lock export-ignore
phpunit.xml.dist export-ignore

* text eol=lf
59 changes: 59 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Testing
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- 8.0
dependency-levels:
- 'highest'
experimental:
- false
include:
- php-versions: 5.4
dependency-levels: 'lowest'
experimental: false
continue-on-error: ${{ matrix.experimental }}

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}

- name: Validating PHP syntax
run: find ./tests/ -type f -name '*.php' -print0 | xargs -0 -L 1 -P 4 -- php -l

- name: Validate composer.json and composer.lock
run: composer validate

# Because PHPCS 3 requires PHP 5.4
- run: composer require --dev -W squizlabs/php_codesniffer:^2.0 symfony/yaml:^2.0 phpdocumentor/reflection-docblock:^2.0
if: matrix.php-versions == '5.3'

- name: Install dependencies
uses: ramsey/composer-install@v1
with:
dependency-versions: "${{ matrix.dependency-levels }}"
composer-options: "--prefer-dist"

- name: PhpUnit
run: ./vendor/bin/phpunit

- name: PHPCS
run: ./vendor/bin/phpcs -s --report-source --runtime-set ignore_warnings_on_exit 1
# Because PHPCS 2 does not have PSR-12 rule
if: matrix.php-versions != '5.3'
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/vendor/
/.idea
/.env
/.env.example
/docker/
/docker-compose.yml
/.editorconfig
/.phpunit.result.cache
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Change log
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [[*next-version*]] - YYYY-MM-DD
Initial release. This ports the test for and from [`psr/log`][], according to
[decision][1].


[`psr/log`]: https://packagist.org/packages/psr/log
[1]: https://github.com/php-fig/log/pull/76#issuecomment-858743302
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# PSR - Log Util
Utilities for the [`psr/log`][] package that backs the [PSR-3][] specification.


[`psr/log`]: https://packagist.org/packages/psr/log
[PSR-3]: https://www.php-fig.org/psr/psr-3/
36 changes: 36 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "psr/log-util",
"description": "Utilities for the psr/log package that backs the PSR-3 specification.",
"minimum-stability": "dev",
"license": "MIT",
"authors": [
{
"name": "PHP-FIG",
"homepage": "https://www.php-fig.org/",
"role": "Organisation"
},
{
"name": "Anton Ukhanev",
"email": "xedin.unknown@gmail.com",
"role": "Developer"
}
],
"require": {
"php": "^5.3 | ^7.0 | ^8.0",
"psr/log": "^1.1.4"
},
"require-dev": {
"phpunit/phpunit": "^4.0 | ^5.0 | ^6.0 | ^7.0 | ^8.0 | ^9.0",
"squizlabs/php_codesniffer": "^3.6"
},
"autoload": {
"psr-4": {
"Psr\\Log\\Util\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Psr\\Log\\Util\\Tests\\": "tests"
}
}
}
Loading