language: php

php:
 - 7.0
 - 7.1
 - nightly

before_script:
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-source --dev

script:
 - vendor/bin/parallel-lint src tests
 - vendor/bin/phpcs --config-set ignore_warnings_on_exit 1
 - vendor/bin/phpcs --standard=psr2 src
 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then vendor/bin/phpcs --standard=phpcs.xml src --ignore=tests/Sniffs; fi
 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then vendor/bin/phpcs --standard=codor.xml src -spn; fi
 - vendor/bin/phpunit --debug --coverage-clover=coverage.xml
 - vendor/bin/phpmd src text codesize,unusedcode,naming
 - vendor/bin/phploc src
 - vendor/bin/phpcpd src
 - php churn run src

after_success:
 - bash <(curl -s https://codecov.io/bash)
language: php

php:
 - 7.0
 - 7.1
 - 7.2
 - nightly

before_script:
  - travis_retry composer self-update
  - travis_retry composer install --no-interaction --prefer-source --dev

script:
 - vendor/bin/parallel-lint src tests
 - vendor/bin/phpcs --config-set ignore_warnings_on_exit 1
 - vendor/bin/phpcs --standard=psr2 src
 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then vendor/bin/phpcs --standard=phpcs.xml src --ignore=tests/Sniffs; fi
 - if [[ ${TRAVIS_PHP_VERSION:0:3} == "7.0" ]]; then vendor/bin/phpcs --standard=codor.xml src -spn; fi
 - vendor/bin/phpunit --debug --coverage-clover=coverage.xml
 - vendor/bin/phpmd src text codesize,unusedcode,naming
 - vendor/bin/phploc src
 - vendor/bin/phpcpd src
 - php churn run src

after_success:
 - bash <(curl -s https://codecov.io/bash)
Add PHP 7.2 to Travis-CI build
Add PHP 7.2 to Travis-CI build
