language: php

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

sudo: required
dist: trusty
group: edge

env:
  - NODE_VERSION=8.x

cache:
  yarn: true
  directories:
    - node_modules
    - $HOME/.composer/cache/files

matrix:
  allow_failures:
    - php: hhvm

before_install:
  - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.27.5
  - export PATH="$HOME/.yarn/bin:$PATH"
  - composer self-update
  - npm install grunt-cli yarn -g

install:
  - travis_retry composer install --no-interaction --prefer-source
  - npm install
  - grunt build

script: ./bin/phpunit --configuration phpunit.xml

language: php

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

node_js:
  - '8'

sudo: required
dist: trusty
group: edge

env:
  - NODE_VERSION=8.x

cache:
  yarn: true
  directories:
    - node_modules
    - $HOME/.composer/cache/files

matrix:
  allow_failures:
    - php: hhvm

before_install:
  - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 0.27.5
  - export PATH="$HOME/.yarn/bin:$PATH"
  - composer self-update
  - npm install grunt-cli yarn -g

install:
  - travis_retry composer install --no-interaction --prefer-source
  - npm install
  - grunt build

script: ./bin/phpunit --configuration phpunit.xml

Use Node v8 in Travis
Use Node v8 in Travis
