dist: xenial
sudo: false
language: php

php:
  - 7.2
  - 7.3
  - 7.4snapshot
  - nightly

cache:
  directories:
    - $HOME/.composer/cache

before_install:
  - mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
  - composer self-update

install: travis_retry composer update --prefer-dist

script:
  - vendor/bin/phpcs
  - make test-report

stages:
  - Validate against schema
  - Test
  - Apply fixes

jobs:
  allow_failures:
    - php: nightly

  include:
    - stage: Validate against schema
      addons:
        apt:
          packages:
            - libxml2-utils
      script:
        - xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd lib/Doctrine/ruleset.xml

    - stage: Apply fixes
      script: make test-fix

    - stage: Apply fixes
      php: 7.4snapshot
      script: make test-fix

dist: xenial
sudo: false
language: php

php:
  - 7.2
  - 7.3
  - 7.4
  - nightly

cache:
  directories:
    - $HOME/.composer/cache

before_install:
  - mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
  - composer self-update

install: travis_retry composer update --prefer-dist

script:
  - vendor/bin/phpcs
  - make test-report

stages:
  - Validate against schema
  - Test
  - Apply fixes

jobs:
  allow_failures:
    - php: nightly

  include:
    - stage: Validate against schema
      addons:
        apt:
          packages:
            - libxml2-utils
      script:
        - xmllint --noout --schema vendor/squizlabs/php_codesniffer/phpcs.xsd lib/Doctrine/ruleset.xml

    - stage: Apply fixes
      script: make test-fix

    - stage: Apply fixes
      php: 7.4
      script: make test-fix

Use stable version of PHP 7.4 in Travis CI
Use stable version of PHP 7.4 in Travis CI