language: php
dist: trusty

sudo: false

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

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

before_install:
    - composer self-update

install:
    - composer install
    # Last released version of htmlpurifier (4.10.0) is broken on HHVM
    # https://github.com/ezyang/htmlpurifier/issues/169
    - if [ "${TRAVIS_PHP_VERSION}" == "hhvm" ]; then composer require 'ezyang/htmlpurifier:dev-master#89b3fe4'; fi

script:
    - mkdir -p build/logs
    - php vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
    - php vendor/bin/coveralls

language: php
dist: trusty

sudo: false

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

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

before_install:
    - composer self-update

install:
    - composer install
    # Last released version of htmlpurifier (4.10.0) is broken on HHVM
    # https://github.com/ezyang/htmlpurifier/issues/169
    - if [ "${TRAVIS_PHP_VERSION}" == "hhvm" ]; then composer require 'ezyang/htmlpurifier:dev-master#89b3fe4'; fi

script:
    - mkdir -p build/logs
    - php vendor/bin/phpunit --coverage-clover build/logs/clover.xml

after_script:
    - if [ -f "vendor/bin/php-coveralls" ]; then php vendor/bin/php-coveralls; else vendor/bin/coveralls; fi

Fix executing coveralls on Travis
Fix executing coveralls on Travis
