1language: php 2 3php: 4 - 5.6 5 - 7.0 6 - 7.1 7 - 7.2 8 9env: 10 matrix: 11 - PHPUNIT_VERSION="5.6" 12 - PHPUNIT_VERSION="6.5" 13 global: 14 - PATH=$PATH:vendor/bin 15 16matrix: 17 exclude: 18 - php: 5.6 19 env: PHPUNIT_VERSION="6.5" 20 21install: 22 - if [[ "$PHPUNIT_VERSION" = "6.5" ]]; then composer require --dev --no-update phpunit/phpunit:~6.5; fi 23 - composer install 24script: 25 - phpunit --configuration phpunit.xml --coverage-text --coverage-clover=coverage.xml 26 # Run style fixer in test mode on all source files. Will exit with a non-zero 27 # return code if something needs changing. 28 - php-cs-fixer fix --dry-run src 29 - php-cs-fixer fix --dry-run tests 30 31after_success: 32 - bash <(curl -s https://codecov.io/bash)