language: php

sudo: false

cache:
  directories:
    - $HOME/.composer/cache

php:
  - 5.4
  - 5.5
  - 5.6
  - hhvm
  - 7.0
  - 7.1

matrix:
  include:
    - php: 5.3
      dist: precise
  allow_failures:
    - php: hhvm

install:
  - composer install --prefer-dist

before_script:
  - ~/.phpenv/versions/5.6/bin/php -S localhost:8000 -t $(pwd) > /dev/null 2> /tmp/webserver_output.txt &
  - export REPO_URL=http://localhost:8000/
  - while ! curl $REPO_URL >/dev/null 2>&1; do sleep 1; done

script:
  - ./vendor/bin/phpunit

after_failure:
    - cat /tmp/webserver_output.txt

language: php

sudo: false

cache:
  directories:
    - $HOME/.composer/cache

php:
  - 5.4
  - 5.5
  - 5.6
  - 7.0
  - 7.1
  - 7.2

matrix:
  include:
    - php: 5.3
      dist: precise

install:
  - composer install --prefer-dist

before_script:
  - ~/.phpenv/versions/5.6/bin/php -S localhost:8000 -t $(pwd) > /dev/null 2> /tmp/webserver_output.txt &
  - export REPO_URL=http://localhost:8000/
  - while ! curl $REPO_URL >/dev/null 2>&1; do sleep 1; done

script:
  - ./vendor/bin/phpunit

after_failure:
    - cat /tmp/webserver_output.txt

Add PHP 7.2 to build and remove HHVM from build
Add PHP 7.2 to build and remove HHVM from build
