.travis.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. language: php
  2. sudo: false
  3. addons:
  4. apt:
  5. packages:
  6. - libxml2-utils
  7. php:
  8. - 5.6
  9. - 7.0
  10. - 7.1
  11. - 7.2
  12. - master
  13. matrix:
  14. allow_failures:
  15. - php: 7.2
  16. - php: master
  17. fast_finish: true
  18. env:
  19. matrix:
  20. - DEPENDENCIES="high"
  21. - DEPENDENCIES="low"
  22. global:
  23. - DEFAULT_COMPOSER_FLAGS="--no-interaction --no-ansi --no-progress --no-suggest"
  24. before_install:
  25. - composer self-update
  26. - composer clear-cache
  27. install:
  28. - if [[ "$DEPENDENCIES" = 'high' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS; fi
  29. - if [[ "$DEPENDENCIES" = 'low' ]]; then travis_retry composer update $DEFAULT_COMPOSER_FLAGS --prefer-lowest; fi
  30. before_script:
  31. - echo 'zend.assertions=1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  32. - echo 'assert.exception=On' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
  33. script:
  34. - ./phpunit --coverage-clover=coverage.xml
  35. - ./phpunit --configuration ./build/travis-ci-fail.xml > /dev/null; if [ $? -eq 0 ]; then echo "SHOULD FAIL"; false; else echo "fail checked"; fi;
  36. - xmllint --noout --schema phpunit.xsd phpunit.xml
  37. - xmllint --noout --schema phpunit.xsd tests/_files/configuration.xml
  38. - xmllint --noout --schema phpunit.xsd tests/_files/configuration_empty.xml
  39. - xmllint --noout --schema phpunit.xsd tests/_files/configuration_xinclude.xml -xinclude
  40. after_success:
  41. - bash <(curl -s https://codecov.io/bash)
  42. notifications:
  43. email: false