.travis.yml 1010 B

123456789101112131415161718192021222324252627282930313233
  1. language: php
  2. php:
  3. - 7.0
  4. - 5.6
  5. - 5.5
  6. - hhvm
  7. matrix:
  8. allow_failures:
  9. - php: hhvm
  10. before_install:
  11. - sudo apt-get update -qq
  12. - sudo apt-get install -y -qq postfix
  13. install:
  14. - composer update
  15. before_script:
  16. - sudo service postfix stop
  17. - smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 &
  18. - mkdir -p build/logs
  19. - cp test/testbootstrap-dist.php test/testbootstrap.php
  20. - chmod +x test/fakesendmail.sh
  21. - sudo mkdir -p /var/qmail/bin
  22. - sudo cp test/fakesendmail.sh /var/qmail/bin/sendmail
  23. - sudo cp test/fakesendmail.sh /usr/sbin/sendmail
  24. - |
  25. if [[ $TRAVIS_PHP_VERSION != "hhv"* ]]; then
  26. echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' > $(php --ini|grep -m 1 "ini files in:"|cut -d ":" -f 2)/sendmail.ini
  27. fi
  28. script:
  29. - ./vendor/bin/phpunit --configuration ./travis.phpunit.xml.dist --bootstrap ./vendor/autoload.php
  30. after_script:
  31. - wget https://scrutinizer-ci.com/ocular.phar
  32. - php ocular.phar code-coverage:upload --format=php-clover ../build/logs/clover.xml