.travis.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. - php: 7.4snapshot
  21. fast_finish: true
  22. cache:
  23. directories:
  24. - $HOME/.composer/cache
  25. before_script:
  26. - composer self-update
  27. - composer update $COMPOSER_FLAGS --prefer-dist
  28. script:
  29. - stty cols 120
  30. - 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
  31. - mkdir -p build/logs
  32. - ./vendor/bin/phpunit --coverage-clover=coverage.xml
  33. after_script:
  34. - if [ "$SCRUTINIZER" == 1 ]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi
  35. - if [ "$BENCHMARK" == 1 ]; then php test/benchmark/run.php 10; fi
  36. notifications:
  37. irc: "irc.freenode.net#masterminds"