.travis.yml 897 B

1234567891011121314151617181920212223
  1. language: php
  2. php:
  3. - 5.3.3
  4. - 5.3
  5. - 5.4
  6. - 5.5
  7. - 5.6
  8. - hhvm
  9. before_script:
  10. - ./.travis.install.sh
  11. - if [ $TRAVIS_PHP_VERSION = '5.6' ]; then PHPUNIT_FLAGS="--coverage-clover coverage.clover"; else PHPUNIT_FLAGS=""; fi
  12. script:
  13. - if [ $TRAVIS_PHP_VERSION = '5.3.3' ]; then phpunit; fi
  14. - if [ $TRAVIS_PHP_VERSION != '5.3.3' ]; then ./vendor/bin/phpunit $PHPUNIT_FLAGS; fi
  15. - if [ $TRAVIS_PHP_VERSION != '5.3.3' ]; then ./vendor/bin/phpcs --standard=PSR2 ./src/ ./tests/; fi
  16. - if [[ $TRAVIS_PHP_VERSION != '5.3.3' && $TRAVIS_PHP_VERSION != '5.4.29' && $TRAVIS_PHP_VERSION != '5.5.13' ]]; then php -n ./vendor/bin/athletic -p ./tests/DoctrineTest/InstantiatorPerformance/ -f GroupedFormatter; fi
  17. after_script:
  18. - if [ $TRAVIS_PHP_VERSION = '5.6' ]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi