.travis.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. language: node_js
  2. node_js: node
  3. matrix:
  4. include:
  5. # Node versions
  6. - node_js: 0.10
  7. - node_js: 0.12
  8. - node_js: 1
  9. - node_js: 2
  10. - node_js: 3
  11. - node_js: 4
  12. - node_js: 5
  13. - node_js: 6
  14. - node_js: 7
  15. - node_js: 8
  16. - node_js: 9
  17. - node_js: 10
  18. - node_js: 12
  19. - node_js: node
  20. # Browser testing
  21. - env:
  22. - AIRTAP_TEST=1
  23. - SAUCE_USERNAME: parshap
  24. addons:
  25. sauce_connect: true
  26. jwt:
  27. - secure: C7rEgVrfIFovn763aFbXwZrEvTapI1MDDSk8nmU/nseC8Zb++6wCHNbKeGPLaY1kgRNOJbIo9SoHWUoLhGjjHXiNamQfoRPgeD3MXe1qhUskwxOeqpXOFfZv6KEyi3YNjPrjVTgLqK/mfmH2HxHr2HIldP15z40cc5+SLxKS2Fk=
  28. hosts:
  29. - airtap.local
  30. # Include all possible file systems
  31. # Normal builds use AUFS
  32. # See http://docs.travis-ci.com/user/ci-environment/
  33. # HFS+
  34. - os: osx
  35. # ext4
  36. - sudo: required
  37. dist: trusty
  38. # SIMFS
  39. - sudo: required
  40. # NTFS
  41. - os: windows
  42. script: |
  43. if [ -n "$AIRTAP_TEST" ]
  44. then
  45. # Work around this logic that doesn't work when using jwt by setting
  46. # TRAVIS_SECURE_ENV_VARS=true.
  47. # https://github.com/airtap/airtap/blob/00cfae3f38b59f5ff4001cb5e131964e72ab6f24/bin/airtap.js#L6
  48. TRAVIS_SECURE_ENV_VARS=true npm run test-browser-sauce
  49. else
  50. npm test
  51. fi