language: php
sudo: required
dist: trusty
group: edge

php:
    - 5.5
    - 5.6
    - 7.0
    - nightly
    - hhvm-3.12
    - hhvm-nightly

before_install:
    - echo $TRAVIS_PHP_VERSION
    - travis_retry composer self-update

install:
    - export PATH="$PATH:$HOME/.config/composer/vendor/bin"
    - travis_retry composer global require friendsofphp/php-cs-fixer "^2.0.0@dev"
    - travis_retry composer global require satooshi/php-coveralls "^1.0.0"
    - travis_retry composer update --no-interaction --prefer-source

before_script:
    - if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then coverage="--coverage-xml"; fi
    - vendor/bin/codecept build

script:
    - php-cs-fixer fix --dry-run
    - vendor/bin/codecept run $coverage

after_success:
    - if [ $coverage != "" ]; then coveralls --verbose; fi

language: php
sudo: required
dist: trusty
group: edge

php:
    - 5.5
    - 5.6
    - 7.0
    - nightly
    - hhvm-3.12
    - hhvm-nightly

matrix:
    allow_failures:
        - php: hhvm-3.12
        - php: hhvm-nightly

before_install:
    - travis_retry composer self-update

install:
    - export PATH="$PATH:$HOME/.config/composer/vendor/bin"
    - travis_retry composer global require friendsofphp/php-cs-fixer "^2.0.0@dev"
    - travis_retry composer global require satooshi/php-coveralls "^1.0.0"
    - travis_retry composer update --no-interaction --prefer-source

before_script:
    - if [[ $TRAVIS_PHP_VERSION != hhvm* ]]; then coverage="--coverage-xml"; fi
    - vendor/bin/codecept build

script:
    - php-cs-fixer fix --dry-run
    - vendor/bin/codecept run $coverage

after_success:
    - if [ $coverage != "" ]; then coveralls --verbose; fi

Allow HHVM to fail (because of nette/neon 2.4)
Allow HHVM to fail (because of nette/neon 2.4)
