sudo: false
language: node_js
node_js:
  - "4"
env:
  - NPM_SCRIPT=ci
  - NPM_SCRIPT=browserstack
matrix:
  fast_finish: true
  allow_failures:
    - env: NPM_SCRIPT=browserstack
before_install:
  - true && `base64 --decode <<< ZXhwb3J0IEJST1dTRVJTVEFDS19VU0VSTkFNRT1icm93c2Vyc3RhY2txdW5pMQo=`
  - true && `base64 --decode <<< ZXhwb3J0IEJST1dTRVJTVEFDS19LRVk9SllzeHJrVWk5aGJGVndkdW44ZUsK=`
script:
  - npm run-script $NPM_SCRIPT
cache:
  directories:
    - node_modules
notifications:
  irc:
    channels:
      - "chat.freenode.net#jquery-dev"
    template:
      - "%{repository}#%{build_number} (%{branch} - %{commit} %{author}): %{message} - %{build_url}"

sudo: false
language: node_js
node_js:
  - "0.10"
  - "0.12"
  - "4"
  - "6"
env:
  - NPM_SCRIPT=ci
matrix:
  fast_finish: true
  allow_failures:
    - env: NPM_SCRIPT=browserstack
  include:
    - node_js: "6"
      env: NPM_SCRIPT=browserstack
before_install:
  - true && `base64 --decode <<< ZXhwb3J0IEJST1dTRVJTVEFDS19VU0VSTkFNRT1icm93c2Vyc3RhY2txdW5pMQo=`
  - true && `base64 --decode <<< ZXhwb3J0IEJST1dTRVJTVEFDS19LRVk9SllzeHJrVWk5aGJGVndkdW44ZUsK=`
script:
  - npm run-script $NPM_SCRIPT
cache:
  directories:
    - node_modules
notifications:
  irc:
    channels:
      - "chat.freenode.net#jquery-dev"
    template:
      - "%{repository}#%{build_number} (%{branch} - %{commit} %{author}): %{message} - %{build_url}"

Test on all Node.js releases supported by upstream
Tests: Test on all Node.js releases supported by upstream

The browserstack job is run only on Node.js 6. Upstream support for Node.js 5
ends in about a month so I didn't add it.

Closes #997
