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

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 jpm -g
  - npm install fx-download -g
  - npm install gulp -g
  - npm install
  - gulp javascript-addon
  - cd ..
  - fx-download --branch nightly -c prerelease --host ftp.mozilla.org firefox
  - export JPM_FIREFOX_BINARY=$TRAVIS_BUILD_DIR/../firefox/firefox
  - cd $TRAVIS_BUILD_DIR/addon

script:
  - pwd && ls && cd $TRAVIS_BUILD_DIR/dist/addon && jpm test -v

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

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 -g jpm
  - npm install -g mozilla-download
  - npm install
  - make all
  - cd ..
  - mozilla-download --branch mozilla-central --product firefox firefox
  - export JPM_FIREFOX_BINARY=$TRAVIS_BUILD_DIR/../firefox/firefox
  - cd $TRAVIS_BUILD_DIR/

script:
  - pwd && ls && cd $TRAVIS_BUILD_DIR/build/addon && jpm test -v

Change Travis script for Makefile use
Change Travis script for Makefile use
