Skip to content
Mike Taylor edited this page Jan 25, 2015 · 3 revisions

add the following to a file named .travis.yml:

language: node_js
node_js:
- '0.10'
before_install:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/df4440290bd89d941fb4
    on_success: change  # options: [always|never|change] default: always
    on_failure: always  # options: [always|never|change] default: always
    on_start: false     # default: false

script: npm run test-ci

SauceConnect

To enable SauceLabs browser testing, you need to generate a hash of the access_key and the repo slug:

travis encrypt -r AmpersandJS/reponame "secret_access_key_value"

Add the following to your .travis.yml file and include the above value:

addons:
  sauce_connect:
    username: ampersandjs-ci
    access_key:
      secure: "output from the travis encrypt step above"
Clone this wiki locally