2012-03-17 13:18:16 +01:00
|
|
|
language: php
|
2017-03-05 18:07:48 +01:00
|
|
|
dist: trusty
|
2015-09-14 15:26:42 +02:00
|
|
|
sudo: false
|
|
|
|
|
2016-02-15 23:07:36 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.composer/cache
|
|
|
|
|
2017-01-19 22:59:30 +01:00
|
|
|
php:
|
|
|
|
- 7.0
|
|
|
|
- 7.1
|
|
|
|
- nightly
|
|
|
|
- hhvm
|
2014-01-20 12:20:54 +01:00
|
|
|
|
2016-02-20 17:16:46 +01:00
|
|
|
install:
|
2017-04-24 22:10:25 +02:00
|
|
|
- if [ $TRAVIS_PHP_VERSION = '7.0' ]; then composer require satooshi/php-coveralls '~1.0'; fi
|
2016-02-15 23:07:36 +01:00
|
|
|
- composer install --prefer-dist
|
2017-03-05 18:07:48 +01:00
|
|
|
# Disable JIT compilation in hhvm, as the JIT is useless for short live scripts like tests.
|
2017-04-24 22:26:31 +02:00
|
|
|
- if [[ $TRAVIS_PHP_VERSION = hhvm* ]]; then echo -e "hhvm.jit = 0\nhhvm.php7.all = 1" >> /etc/hhvm/php.ini; fi
|
2015-09-16 15:00:44 +02:00
|
|
|
|
2014-01-20 12:20:54 +01:00
|
|
|
matrix:
|
2015-09-14 15:26:42 +02:00
|
|
|
allow_failures:
|
|
|
|
- php: nightly
|
2017-01-19 22:59:30 +01:00
|
|
|
- php: hhvm
|
2014-01-20 12:20:54 +01:00
|
|
|
fast_finish: true
|
2015-09-20 15:17:42 +02:00
|
|
|
|
2016-02-20 17:16:46 +01:00
|
|
|
script:
|
2017-04-24 22:10:25 +02:00
|
|
|
- if [ $TRAVIS_PHP_VERSION = '7.0' ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; else vendor/bin/phpunit; fi
|
|
|
|
- if [ $TRAVIS_PHP_VERSION = '7.1' ]; then test_old/run-php-src.sh; fi
|
2016-02-20 17:16:46 +01:00
|
|
|
|
|
|
|
after_success:
|
2017-04-24 22:10:25 +02:00
|
|
|
if [ $TRAVIS_PHP_VERSION = '7.0' ]; then php vendor/bin/coveralls; fi
|