language: php
os: 'linux'

matrix:
    include:
        -   name: '5.6'
            php: '5.6'
            env: 'PHPUNIT=5.7'
        -   name: '7.0'
            php: '7.0'
            env: 'PHPUNIT=6.5'
        -   name: '7.1'
            php: '7.1'
            env: 'PHPUNIT=6.5'
        -   name: '7.2'
            php: '7.2'
            env: 'PHPUNIT=6.5'
        -   name: '7.3'
            php: '7.3'
            env: 'PHPUNIT=6.5'
        -   name: '7.4'
            php: '7.4'
            env: 'PHPUNIT=7.0'
        -   name: '8.0'
            php: '8.0'
            env: 'PHPUNIT=9.5'
    allow_failures:
        -   name: '8.1'
            php: '8.1'
            env: 'PHPUNIT=9.5'

install:
    - composer install
    - composer require "phpunit/phpunit:^${PHPUNIT}"
script:
    - ./vendor/bin/phpunit --bootstrap="tests/bootstrap.php" --test-suffix="Test.php" tests

language: php
os: 'linux'

matrix:
    include:
        -   name: '5.6'
            php: '5.6'
            env: 'PHPUNIT=5.7'
        -   name: '7.0'
            php: '7.0'
            env: 'PHPUNIT=6.5'
        -   name: '7.1'
            php: '7.1'
            env: 'PHPUNIT=6.5'
        -   name: '7.2'
            php: '7.2'
            env: 'PHPUNIT=6.5'
        -   name: '7.3'
            php: '7.3'
            env: 'PHPUNIT=6.5'
        -   name: '7.4'
            php: '7.4'
            env: 'PHPUNIT=7.0'
        -   name: '8.0'
            php: '8.0'
            env: 'PHPUNIT=9.5'
    allow_failures:
        -   name: '8.1'
            php: '8.1'
            env: 'PHPUNIT=9.5'

install:
    - composer install
    - composer require "phpunit/phpunit:^${PHPUNIT}"
script:
    - find src/ -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )
    - ./vendor/bin/phpunit --bootstrap="tests/bootstrap.php" --test-suffix="Test.php" tests

Add PHP Syntax Linting to CI
Add PHP Syntax Linting to CI
