language: node_js
dist: trusty
node_js:
  - 8
  - 10

addons:
  chrome: stable

install:
  - npm ci

before_install:
  - npm i -g npm@latest

script:
  # xvfb-run is needed for headless testing with real browsers
  - xvfb-run karma start --single-run

  - if [[ "$TRAVIS_EVENT_TYPE" = "push" ]]; then
      karma start --single-run --sauce;
    fi;

notifications:
  email:
    on_success: never

language: node_js
dist: trusty
node_js: lts/*

addons:
  chrome: stable

install:
  - npm ci

before_install:
  - npm i -g npm@latest

script:
  # xvfb-run is needed for headless testing with real browsers
  - xvfb-run karma start --single-run

  - if [[ "$TRAVIS_EVENT_TYPE" = "push" ]]; then
      karma start --single-run --sauce;
    fi;

notifications:
  email:
    on_success: never

Test only against node LTS
Test only against node LTS

