language: node_js
# Be aware of https://github.com/nodejs/LTS when choosing versions to test
# Update engines.node in package.json if removing old versions.
node_js:
  - node
  - 0.10
  - 0.8
# Note1:  Travis appears to interpret 0.1 as 0.10
# Note2:  Travis has to build Node versions before 0.8.
#         So to be a good netizen, we normally disable it.
# - 0.2

# If the package has OS-dependent features, uncomment this.
#os:
#  - linux
#  - osx

# Note:  semantic-release caches node_modules and `npm prune` in before_script
# https://github.com/semantic-release/semantic-release/blob/v6.2.0/.travis.yml#L3
# Since cache is stored in S3 and npm repository is a caching proxy, why bother?

sudo: false

script:
  - npm run test-cov

# Note:  Both codecov and coveralls detect branch/PR info from Travis CI
# https://github.com/codecov/codecov-node/blob/v1.0.1/lib/services/travis.js
# https://github.com/nickmerwin/node-coveralls/blob/2.11.5/lib/getOptions.js#L18
after_success:
  - npm run upload-cov

language: node_js
# Be aware of https://github.com/nodejs/LTS when choosing versions to test
# Update engines.node in package.json if removing old versions.
node_js:
  - node
  - 0.12
  - 0.10
# Note:  The npm version which ships with 0.8 does not support carat versions,
# which makes it difficult to use (it would require removing tilde from both
# direct and transitive dependencies).

# If the package has OS-dependent features, uncomment this.
#os:
#  - linux
#  - osx

# Note:  semantic-release caches node_modules and `npm prune` in before_script
# https://github.com/semantic-release/semantic-release/blob/v6.2.0/.travis.yml#L3
# Since cache is stored in S3 and npm repository is a caching proxy, why bother?

sudo: false

script:
  - npm run test-cov

# Note:  Both codecov and coveralls detect branch/PR info from Travis CI
# https://github.com/codecov/codecov-node/blob/v1.0.1/lib/services/travis.js
# https://github.com/nickmerwin/node-coveralls/blob/2.11.5/lib/getOptions.js#L18
after_success:
  - npm run upload-cov

Remove Node 0.8 add 0.12
Remove Node 0.8 add 0.12

We can't test 0.8 due to the npm issues of the previous commit.  So add
0.12 to get more coverage of oldish versions (0.12 introduced Promises
and lacked unhandledRejection, so it is a good test candidate).

Signed-off-by: Kevin Locke <ffb4761cba839470133bee36aeb139f58d7dbaa9@kevinlocke.name>
