.travis.yml 919 B

123456789101112131415161718192021222324252627282930313233
  1. language: php
  2. php:
  3. - 5.6
  4. - 5.5
  5. - 5.4
  6. - 5.3
  7. - hhvm
  8. matrix:
  9. allow_failures:
  10. - php: hhvm
  11. before_install:
  12. - sudo apt-get update -qq
  13. - sudo apt-get install -y -qq postfix
  14. before_script:
  15. - sudo service postfix stop
  16. - smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 &
  17. - mkdir -p build/logs
  18. - cd test
  19. - cp testbootstrap-dist.php testbootstrap.php
  20. - chmod +x fakesendmail.sh
  21. - sudo mkdir -p /var/qmail/bin
  22. - sudo cp fakesendmail.sh /var/qmail/bin/sendmail
  23. - sudo cp fakesendmail.sh /usr/sbin/sendmail
  24. - echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' | sudo tee "/home/travis/.phpenv/versions/`php -r 'echo PHP_VERSION;'`/etc/conf.d/sendmail.ini"
  25. - pwd
  26. - ls -al
  27. script:
  28. - phpunit --configuration ../travis.phpunit.xml.dist
  29. after_script:
  30. - wget https://scrutinizer-ci.com/ocular.phar
  31. - php ocular.phar code-coverage:upload --format=php-clover ../build/logs/clover.xml