diff --git a/.travis.install.yml b/.travis.install.yml new file mode 100755 index 0000000..3c6e699 --- /dev/null +++ b/.travis.install.yml @@ -0,0 +1,9 @@ +set -x +if [ "$TRAVIS_PHP_VERSION" = 'hhvm' ] || [ "$TRAVIS_PHP_VERSION" = 'hhvm-nightly' ]; then + curl -sS https://getcomposer.org/installer > composer-installer.php + hhvm composer-installer.php + hhvm -v ResourceLimit.SocketDefaultTimeout=30 -v Http.SlowQueryThreshold=30000 composer.phar install --prefer-source +else + composer self-update + composer install --prefer-source +fi diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b02db47 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: php + +php: + - 5.4 + - 5.5 + - 5.6 + - hhvm + - hhvm-nightly + +before_script: + - ./.travis.install.sh + +script: + - ./vendor/bin/phpunit