dist: xenial

language: node_js

addons:
  apt:
    packages:
      - chromium-browser

node_js:
  - lts/*
  - node

before_install:
  - curl -o- -L https://yarnpkg.com/install.sh | bash -s
  - export PATH=$HOME/.yarn/bin:$PATH

script:
  - NODE_OPTIONS=--max_old_space_size=4096 yarn lint
  - yarn audit
  - NODE_OPTIONS=--max_old_space_size=4096 yarn test --code-coverage
  - NODE_OPTIONS=--max_old_space_size=4096 yarn build

after_script:
  - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

dist: xenial

language: node_js

addons:
  apt:
    packages:
      - chromium-browser

node_js:
  - lts/*
  - node

before_install:
  - curl -o- -L https://yarnpkg.com/install.sh | bash -s
  - export PATH=$HOME/.yarn/bin:$PATH

script:
  - yarn lint
  - yarn audit
  - yarn test --code-coverage
  - yarn build

after_script:
  - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

Revert "Add NODE_OPTIONS at script level"
Revert "Add NODE_OPTIONS at script level"

This reverts commit ba56532f
