language: node_js
node_js:
    - "node"
env:
    global:
        - DISPLAY=:100
        - TEST_FIREFOX_BIN=/usr/bin/firefox
install:
    - npm install
    - npm ls
jobs:
    include:
        - stage: test
          env: TEST_SUITE=lint,unit,integration
          sudo: required
          dist: trusty
          before_install:
              - lsb_release -a
              - sudo add-apt-repository -y ppa:ubuntu-mozilla-daily/firefox-aurora
              - sudo apt-get update
              - sudo apt-get install -y xvfb openbox firefox
              - '"$TEST_FIREFOX_BIN" --version'
          before_script:
              - Xvfb "$DISPLAY" -ac -noreset -screen 0 1024x768x16 &
              # Firefox can crash if you do not have a window manager
              # (for example when window.open() tries to maximize the new window)
              - openbox &
          script:
              - npm run lint
              - npm run test:unit:coveralls

language: node_js
node_js:
    - "node"
env:
    global:
        - DISPLAY=:100
        - TEST_FIREFOX_BIN=/usr/bin/firefox
install:
    - npm install
    - npm ls; true
jobs:
    include:
        - stage: test
          env: TEST_SUITE=lint,unit,integration
          sudo: required
          dist: trusty
          before_install:
              - lsb_release -a
              - sudo add-apt-repository -y ppa:ubuntu-mozilla-daily/firefox-aurora
              - sudo apt-get update
              - sudo apt-get install -y xvfb openbox firefox
              - '"$TEST_FIREFOX_BIN" --version'
          before_script:
              - Xvfb "$DISPLAY" -ac -noreset -screen 0 1024x768x16 &
              # Firefox can crash if you do not have a window manager
              # (for example when window.open() tries to maximize the new window)
              - openbox &
          script:
              - npm run lint
              - npm run test:unit:coveralls

Make sure that `npm ls` never fails the build
Make sure that `npm ls` never fails the build

`npm ls` can exit with non 0 in some cases, for example if a peer dependency is missing. Even though the build succeeds
