diff --git a/.travis.sh b/.travis.sh new file mode 100755 index 00000000..3464a201 --- /dev/null +++ b/.travis.sh @@ -0,0 +1,13 @@ +#!/bin/sh +set -ex +hhvm --version +apt-get update -y +apt-get install -y wget curl git +curl https://getcomposer.org/installer | hhvm -d hhvm.jit=0 --php -- /dev/stdin --install-dir=/usr/local/bin --filename=composer + +cd /var/source +hhvm -d hhvm.jit=0 /usr/local/bin/composer install + +hh_server --check $(pwd) +hhvm -d hhvm.php7.all=0 -d hhvm.jit=0 vendor/bin/phpunit +hhvm -d hhvm.php7.all=1 -d hhvm.jit=0 vendor/bin/phpunit diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..802ae99f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,10 @@ +sudo: required +language: generic +services: + - docker +env: + - HHVM_VERSION=latest +install: + - docker pull hhvm/hhvm:$HHVM_VERSION +script: + - docker run -v $(pwd):/var/source hhvm/hhvm:$HHVM_VERSION /var/source/.travis.sh