language: php

php:
  - '7.2'
  - '7.3'
  - '7.4'
  - nightly

sudo: required
dist: trusty
group: edge

env:
  - NODE_VERSION=10.x

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

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

install:
  - travis_retry composer install --no-interaction --prefer-source
  - yarn install
  - yarn build

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

language: php

php:
  - '7.2'
  - '7.3'
  - '7.4'
  - nightly

sudo: required
dist: trusty
group: edge

env:
  - NODE_VERSION=10

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

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

install:
  - travis_retry composer install --no-interaction --prefer-source
  - yarn install
  - yarn build

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

Fix NodeJS version for nvm
Fix NodeJS version for nvm
