.travis.yml 1.4 KB

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