.travis.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. language: php
  2. dist: trusty
  3. sudo: false
  4. matrix:
  5. include:
  6. - php: 5.3
  7. dist: precise
  8. env: COMPOSER_FLAGS="--prefer-lowest"
  9. - php: 5.4
  10. - php: 5.5
  11. - php: 5.6
  12. env: SCRUTINIZER=1
  13. - php: 7.0
  14. env: COMPOSER_FLAGS="--prefer-lowest"
  15. - php: 7.1
  16. env: CS_FIXER=1
  17. - php: 7.2
  18. - php: 7.3
  19. env: BENCHMARK=1
  20. fast_finish: true
  21. cache:
  22. directories:
  23. - $HOME/.composer/cache
  24. before_script:
  25. - composer self-update
  26. - composer update $COMPOSER_FLAGS --prefer-dist
  27. script:
  28. - stty cols 120
  29. - if [ "$CS_FIXER" == 1 ]; then wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.13.1/php-cs-fixer.phar && php php-cs-fixer.phar fix --dry-run --diff; fi
  30. - mkdir -p build/logs
  31. - ./vendor/bin/phpunit --coverage-clover=coverage.xml
  32. after_script:
  33. - if [ "$SCRUTINIZER" == 1 ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi
  34. - if [ "$BENCHMARK" == 1 ]; then php test/benchmark/run.php 10; fi
  35. notifications:
  36. irc: "irc.freenode.net#masterminds"