php-ml/.travis.yml
2016-07-07 23:50:10 +02:00

36 lines
836 B
YAML

language: php
matrix:
fast_finish: true
include:
- os: linux
php: '7.0'
- os: linux
php: hhvm
env:
- HHVMPHP7="yes"
- os: osx
osx_image: xcode7.3
language: generic
env:
- _OSX=10.11
- _PHP: php70
before_install:
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then /usr/bin/env bash tools/prepare_osx_env.sh ; fi
install:
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then /usr/bin/env bash tools/handle_brew_pkg.sh "${_PHP}" ; fi
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev --no-interaction --ignore-platform-reqs
before_script:
- if [[ $HHVMPHP7 == "yes" ]]; then echo hhvm.php7.all=1 >> /etc/hhvm/php.ini; fi
- if [[ $HHVMPHP7 == "yes" ]]; then sudo service hhvm restart ; sleep 1 ; fi
script:
- bin/phpunit