2013-02-01 15:32:12 +01:00
|
|
|
language: php
|
|
|
|
php:
|
2016-10-20 19:47:18 +02:00
|
|
|
- 7.1
|
2015-03-02 16:15:23 +01:00
|
|
|
- 7.0
|
2014-07-09 21:47:51 +02:00
|
|
|
- 5.6
|
2013-02-01 15:32:12 +01:00
|
|
|
- 5.5
|
2014-07-09 21:47:51 +02:00
|
|
|
- hhvm
|
2014-05-02 18:57:39 +02:00
|
|
|
before_install:
|
2013-02-01 15:32:12 +01:00
|
|
|
- sudo apt-get update -qq
|
|
|
|
- sudo apt-get install -y -qq postfix
|
2015-11-10 14:44:38 +01:00
|
|
|
install:
|
2015-11-10 15:17:46 +01:00
|
|
|
- composer update
|
2013-02-01 15:32:12 +01:00
|
|
|
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
|
2013-02-01 15:32:12 +01:00
|
|
|
script:
|
2015-11-11 18:13:28 +01:00
|
|
|
- ./vendor/bin/phpunit --configuration ./travis.phpunit.xml.dist --bootstrap ./vendor/autoload.php
|
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
|