0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 10:02:14 +02:00
PHPMailer/.travis.yml

36 lines
1.0 KiB
YAML
Raw Normal View History

language: php
php:
- 7.1
- 7.0
2014-07-09 21:47:51 +02:00
- 5.6
- 5.5
- 5.4
- 5.3
2014-07-09 21:47:51 +02:00
- hhvm
2014-05-02 18:57:39 +02:00
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y -qq postfix
2017-03-15 20:04:43 +01:00
install:
- composer install
before_script:
- sudo service postfix stop
- smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 &
2013-12-16 14:28:57 +01:00
- mkdir -p build/logs
- cd test
- cp testbootstrap-dist.php testbootstrap.php
2013-02-02 20:40:32 +01:00
- chmod +x fakesendmail.sh
2013-02-02 20:38:31 +01:00
- sudo mkdir -p /var/qmail/bin
2013-02-02 20:40:32 +01:00
- sudo cp fakesendmail.sh /var/qmail/bin/sendmail
- sudo cp fakesendmail.sh /usr/sbin/sendmail
2017-03-02 15:01:03 +01:00
- |
if [[ $TRAVIS_PHP_VERSION = "hhv"* ]]; then
echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' >> /etc/hhvm/php.ini
else
echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' > $(php --ini|grep -m 1 "ini files in:"|cut -d ":" -f 2)/sendmail.ini
2017-03-15 11:57:56 +01:00
fi
script:
2017-03-15 12:22:28 +01:00
- ../vendor/bin/phpunit --configuration ../travis.phpunit.xml.dist
2013-12-16 14:28:57 +01:00
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover ../build/logs/clover.xml