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

67 lines
1.8 KiB
YAML
Raw Normal View History

language: php
php: '5.6'
cache:
directories:
- $HOME/.composer/cache
2014-05-02 18:57:39 +02:00
before_install:
- sudo apt-get update -qq
- sudo apt-get install -y -qq postfix
install:
- REMOVE_PACKAGE="friendsofphp/php-cs-fixer"; if [ "$CS_CHECK" = 1 ]; then REMOVE_PACKAGE="phpunit/phpunit"; fi; composer remove --no-update --no-scripts --dev $REMOVE_PACKAGE
- composer install
- if [ "$CODE_COVERAGE" != 1 ]; then phpenv config-rm xdebug.ini || true; fi
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
2015-11-11 18:13:28 +01:00
- cp test/testbootstrap-dist.php test/testbootstrap.php
- chmod +x test/fakesendmail.sh
2013-02-02 20:38:31 +01:00
- sudo mkdir -p /var/qmail/bin
2015-11-11 18:13:28 +01:00
- sudo cp test/fakesendmail.sh /var/qmail/bin/sendmail
- sudo cp test/fakesendmail.sh /usr/sbin/sendmail
2015-11-10 19:09:08 +01:00
- |
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
2015-11-10 19:09:08 +01:00
echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' > $(php --ini|grep -m 1 "ini files in:"|cut -d ":" -f 2)/sendmail.ini
fi
script: ./vendor/bin/phpunit --configuration ./travis.phpunit.xml.dist
2013-12-16 14:28:57 +01:00
after_script:
- if [ "$CODE_COVERAGE" = 1 ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$CODE_COVERAGE" = 1 ]; then php ocular.phar code-coverage:upload --format=php-clover ../build/logs/clover.xml; fi
stages:
- coding-standard
- test
jobs:
include:
- stage: coding-standard
before_install:
before_script:
script: ./vendor/bin/php-cs-fixer --diff --dry-run --verbose fix
after_script:
php: 5.6
env: CS_CHECK=1
- stage: test
- php: 7.0
- php: 7.1
- php: 7.2
2018-10-30 08:36:21 +01:00
- php: 7.3
- php: 7.4
2019-02-15 09:47:15 +01:00
env: CODE_COVERAGE=1
2018-03-27 15:49:45 +02:00
- php: nightly
- php: hhvm
dist: trusty
2019-02-15 09:45:57 +01:00
matrix:
allow_failures:
- php: nightly
- php: hhvm