language: node_js
node_js:
  - '6'
  - '8'
  - '10'
cache:
  directories:
    - node_modules
stages:
  - test
  - name: saucelabs
    if: fork IS false
jobs:
  include:
    - stage: saucelabs
      node_js: '10'
      script: grunt saucelabs
      addons:
        sauce_connect: true
env:
  # Encrypted SAUCE_USERNAME and SAUCE_ACCESS_KEY used by travis
  global:
    - secure: IkMOa/8r4sWyzUMxecsfqoPzZyIqVAMwPkQ6/HxXPbT8X7UnvqAdaicAMeHEKtOnOac+rx6pGB9HQvC8P/ZzkEBtsKLP4nEh9vsAInZvb3pXg+qbIgIK6/19X0kU4UkpDqVdWmBuFTamJvMDMstUTgEaM3869bB5vGp9taBgfVo=
    - secure: DKrQplF0CBiBh+cbQ8D7EKebCeklUWEELblIJdU4475Occ4G9b8ZFYO9HFwl1B8F/XapB7CsMyxbJCWor030FySeqn8bhJs9NoAVoYGg+MtWniv1EOHuZLWuOGfgQDv7qj5U0Af9Y655MmUpXSN2aDlCmQweWnYdpFTM9Dfsdd8=

language: node_js
node_js:
  - '6'
  - '8'
  - '10'
cache:
  directories:
    - node_modules
stages:
  - test
  - name: saucelabs
    if: env(SAUCE_USERNAME) IS present
jobs:
  include:
    - stage: saucelabs
      node_js: '10'
      script: grunt saucelabs
      addons:
        sauce_connect: true

Change approach to providing Sauce credentials
Change approach to providing Sauce credentials

Pick them up from environment instead of encrypting them as part of the
travis yaml file; this will make it easier to change them. Possibly
also allows for running sauce based tests in a fork, as long as sauce
credentials are available.
