Add travis configuration

This commit is contained in:
adlawson 2014-07-06 17:34:47 +01:00
parent 8527c7e37b
commit b82acd2471
2 changed files with 23 additions and 0 deletions

9
.travis.install.yml Executable file
View File

@ -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

14
.travis.yml Normal file
View File

@ -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