sudo: false
language: node_js
node_js:
  - "0.12"

addons:
  firefox: "47.0"

notifications:
  irc:
    channels:
      - "irc.mozilla.org#pageshot"
    on_success: change
    template:
      - "%{message}: %{repository}#%{build_number} (%{branch} - %{commit} : %{author}) %{build_url}"

before_install:
  - "export DISPLAY=:99.0"
  - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16 -extension RANDR"

before_script:
  - npm install
  - export JPM_FIREFOX_BINARY=`which firefox`
  - firefox -v
  - echo $JPM_FIREFOX_BINARY
  - make all
  - cd ..
  - cd $TRAVIS_BUILD_DIR/

script:
  - pwd && ls && cd $TRAVIS_BUILD_DIR/build/addon && ./node_modules/.bin/jpm test -v
  - cd $TRAVIS_BUILD_DIR
  - npm run lint

sudo: false
language: node_js
node_js:
  - "0.12"

cache:
  bundler: true
  directories:
  - node_modules

addons:
  firefox: "47.0"

notifications:
  irc:
    channels:
      - "irc.mozilla.org#pageshot"
    on_success: change
    template:
      - "%{message}: %{repository}#%{build_number} (%{branch} - %{commit} : %{author}) %{build_url}"

before_install:
  - "export DISPLAY=:99.0"
  - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16 -extension RANDR"

before_script:
  - ls node_modules || true
  - npm install
  - ls node_modules || true
  - ls node_modules/.bin || true
  - ls ~/node_modules || true
  - export JPM_FIREFOX_BINARY=`which firefox`
  - firefox -v
  - echo $JPM_FIREFOX_BINARY
  - make all
  - cd ..
  - cd $TRAVIS_BUILD_DIR/

script:
  - pwd && ls && cd $TRAVIS_BUILD_DIR/build/addon && ./node_modules/.bin/jpm test -v
  - cd $TRAVIS_BUILD_DIR
  - npm run lint

Add cache, and probe node_modules
Add cache, and probe node_modules
