.travis.yml 762 B

1234567891011121314151617181920212223242526272829
  1. language: php
  2. php:
  3. - 5.5
  4. - 5.6
  5. - 7.0
  6. - 7.1
  7. - 7.2
  8. matrix:
  9. allow_failures:
  10. - php: 5.5
  11. env:
  12. - COMPOSER_OPTS=""
  13. - COMPOSER_OPTS="--prefer-lowest"
  14. install:
  15. - if [[ "${TRAVIS_PHP_VERSION}" == "5.5" ]]; then composer require phpunit/phpunit:^4.8.36 phpspec/phpspec:^2 --prefer-dist --update-with-dependencies; fi
  16. - if [[ "${TRAVIS_PHP_VERSION}" == "7.2" ]]; then composer require phpunit/phpunit:^6.0 --prefer-dist --update-with-dependencies; fi
  17. - travis_retry composer update --prefer-dist $COMPOSER_OPTS
  18. script:
  19. - vendor/bin/phpspec run
  20. - vendor/bin/phpunit
  21. after_script:
  22. - wget https://scrutinizer-ci.com/ocular.phar'
  23. - php ocular.phar code-coverage:upload --format=php-clover ./clover/phpunit.xml'