.travis.yml 933 B

12345678910111213141516171819202122232425262728293031323334353637
  1. language: php
  2. sudo: false
  3. php: [5.4, 5.5, 5.6, 7.0, 7.1, hhvm]
  4. matrix:
  5. include:
  6. - php: 5.3
  7. dist: precise
  8. # Test against LTS versions
  9. - php: 7.1
  10. env: SYMFONY_VERSION='^2'
  11. - php: 7.1
  12. env: SYMFONY_VERSION='^3'
  13. # Test against dev versions of dependencies
  14. - php: 7.1
  15. env: DEPENDENCIES='dev'
  16. cache:
  17. directories:
  18. - $HOME/.composer/cache/files
  19. - $HOME/symfony-bridge/.phpunit
  20. before_install:
  21. - if [ "$DEPENDENCIES" = "dev" ]; then composer config minimum-stability dev; fi;
  22. - sh -c 'if [ "$SYMFONY_VERSION" != "" ]; then composer require -n --no-update symfony/lts=$SYMFONY_VERSION; fi;'
  23. install:
  24. - composer install -n
  25. - vendor/bin/simple-phpunit install
  26. script: vendor/bin/simple-phpunit -v --coverage-clover=coverage.clover
  27. after_script:
  28. - wget https://scrutinizer-ci.com/ocular.phar
  29. - php ocular.phar code-coverage:upload --format=php-clover coverage.clover