-
Notifications
You must be signed in to change notification settings - Fork 41
Home
Mike Taylor edited this page Jan 25, 2015
·
4 revisions
Welcome to the ampersand wiki!
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
env:
global:
- secure: D820SzNYNVkbGCLM0MEBZ+AA0NtjYhxqArfUnos7NskmdSaSTkQP9jdd5xLI/q3kLxh5kwqkleIhT3HbUDawkIoGnvU+6iFKtz68XhOdnGPB4krVCSH18jAykVIZazTZUqTQo6/GbGOUEIWIBcTKN58y+fbpVL38d/zDN+zi1aw=
- secure: LC0G9Dm6WANxRGPmrThaTuWids36YsGseWeM2Pn1hLAHVRNrrpi+OTfcD4edj3juv3HniqsW9p5Iz1xaNId+7PcnrOCtBwtlxwwomMlIuN7fquAlwyGPezYNMei7S6pZGJyngPT0LdDiYkJibaQoRqCi+WQs8F+3xScLAo9WfqQ=
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
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"