mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-27 12:24:39 +01:00
510e0cd202
This uses a more recent HHVM version.
34 lines
853 B
YAML
34 lines
853 B
YAML
language: php
|
|
dist: trusty
|
|
sudo: false
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.composer/cache
|
|
|
|
php:
|
|
- 5.6
|
|
- 7.0
|
|
- 7.1
|
|
- nightly
|
|
- hhvm
|
|
|
|
install:
|
|
- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then composer require satooshi/php-coveralls '~1.0'; fi
|
|
- composer install --prefer-dist
|
|
# Disable JIT compilation in hhvm, as the JIT is useless for short live scripts like tests.
|
|
- if [[ $TRAVIS_PHP_VERSION = hhvm* ]]; then echo 'hhvm.jit = 0' >> /etc/hhvm/php.ini; fi
|
|
|
|
matrix:
|
|
allow_failures:
|
|
- php: nightly
|
|
- php: hhvm
|
|
fast_finish: true
|
|
|
|
script:
|
|
- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then vendor/bin/phpunit --coverage-clover build/logs/clover.xml; else vendor/bin/phpunit; fi
|
|
- if [ $TRAVIS_PHP_VERSION = '7.0' ]; then test_old/run-php-src.sh; fi
|
|
|
|
after_success:
|
|
if [ $TRAVIS_PHP_VERSION = '5.6' ]; then php vendor/bin/coveralls; fi
|