2013-02-01 15:32:12 +01:00
|
|
|
language: php
|
|
|
|
php:
|
2014-07-09 21:47:51 +02:00
|
|
|
- 5.6
|
2013-02-01 15:32:12 +01:00
|
|
|
- 5.5
|
|
|
|
- 5.4
|
|
|
|
- 5.3
|
2014-07-09 21:47:51 +02:00
|
|
|
- hhvm
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- php: 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
|
|
|
|
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
|
2013-02-01 15:32:12 +01:00
|
|
|
- cd test
|
2013-02-01 16:05:17 +01:00
|
|
|
- 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
|
2014-06-13 11:15:05 +02:00
|
|
|
- echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' | sudo tee "/home/travis/.phpenv/versions/`php -r 'echo PHP_VERSION;'`/etc/conf.d/sendmail.ini"
|
2013-12-16 14:28:57 +01:00
|
|
|
- pwd
|
|
|
|
- ls -al
|
2013-02-01 15:32:12 +01:00
|
|
|
script:
|
2013-12-16 14:28:57 +01:00
|
|
|
- phpunit --configuration ../travis.phpunit.xml.dist
|
|
|
|
after_script:
|
|
|
|
- wget https://scrutinizer-ci.com/ocular.phar
|
|
|
|
- php ocular.phar code-coverage:upload --format=php-clover ../build/logs/clover.xml
|