.travis.yml 944 B

12345678910111213141516171819202122232425262728293031323334
  1. language: php
  2. sudo: false
  3. cache:
  4. directories:
  5. - $HOME/.composer/cache/files
  6. php: [5.6, 7.0, 7.1, 7.2, 7.2]
  7. matrix:
  8. include:
  9. - php: 5.6
  10. env: SYMFONY_VERSION='2.3.*'
  11. - php: 5.6
  12. env: SYMFONY_VERSION='2.7.*'
  13. - php: 5.6
  14. env: SYMFONY_VERSION='2.8.*'
  15. - php: 7.1
  16. env: SYMFONY_VERSION='3.*'
  17. before_install:
  18. - composer self-update
  19. - if [ "$SYMFONY_VERSION" != "" ]; then composer require --no-update symfony/yaml=$SYMFONY_VERSION; fi;
  20. install:
  21. - composer install
  22. script: vendor/bin/phpunit -v --coverage-clover=coverage.clover
  23. after_script:
  24. # don't upload coverage on PHP 7 and HHVM as it cannot be generated. We don't want to tell Scrutinizer that the coverage generation failed.
  25. - if [[ "7.0" != "$TRAVIS_PHP_VERSION" && "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi