language: php

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

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

install:
  - ./travis-init.sh
  - composer install -n

script:
  - ./vendor/bin/phpunit --exclude-group permissions
  - export phploc=~/.phpenv/versions/$(phpenv version-name)/bin/php
  - sudo $phploc ./vendor/bin/phpunit --group permissions

language: php

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

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

matrix:
  allow_failures:
    - php: 5.4

install:
  - ./travis-init.sh
  - composer install -n

script:
  - ./vendor/bin/phpunit --exclude-group permissions
  - export phploc=~/.phpenv/versions/$(phpenv version-name)/bin/php
  - sudo $phploc ./vendor/bin/phpunit --group permissions

Allow PHP 5.4 to fail
Allow PHP 5.4 to fail

PHPUnit on PHP 5.4 seems to hang at the end of it's execution for no apparent reason. (Even when successful.)
