.travis.yml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. language: node_js
  2. os:
  3. - linux
  4. node_js:
  5. - "7.9"
  6. - "6.10"
  7. - "5.12"
  8. - "4.8"
  9. - "iojs-v3.3"
  10. - "iojs-v2.5"
  11. - "iojs-v1.8"
  12. - "0.12"
  13. - "0.10"
  14. - "0.8"
  15. before_install:
  16. - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g npm@1.3 ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ;; esac ; fi'
  17. - 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
  18. install:
  19. - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then nvm install 0.8 && npm install -g npm@1.3 && npm install -g npm@1.4.28 && npm install -g npm@2 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
  20. script:
  21. - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
  22. - 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
  23. - 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
  24. - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
  25. sudo: false
  26. env:
  27. - TEST=true
  28. matrix:
  29. fast_finish: true
  30. include:
  31. - node_js: "node"
  32. env: PRETEST=true
  33. - node_js: "node"
  34. env: COVERAGE=true
  35. - node_js: "7.8"
  36. env: TEST=true ALLOW_FAILURE=true
  37. - node_js: "7.7"
  38. env: TEST=true ALLOW_FAILURE=true
  39. - node_js: "7.6"
  40. env: TEST=true ALLOW_FAILURE=true
  41. - node_js: "7.5"
  42. env: TEST=true ALLOW_FAILURE=true
  43. - node_js: "7.4"
  44. env: TEST=true ALLOW_FAILURE=true
  45. - node_js: "7.3"
  46. env: TEST=true ALLOW_FAILURE=true
  47. - node_js: "7.2"
  48. env: TEST=true ALLOW_FAILURE=true
  49. - node_js: "7.1"
  50. env: TEST=true ALLOW_FAILURE=true
  51. - node_js: "7.0"
  52. env: TEST=true ALLOW_FAILURE=true
  53. - node_js: "6.9"
  54. env: TEST=true ALLOW_FAILURE=true
  55. - node_js: "6.8"
  56. env: TEST=true ALLOW_FAILURE=true
  57. - node_js: "6.7"
  58. env: TEST=true ALLOW_FAILURE=true
  59. - node_js: "6.6"
  60. env: TEST=true ALLOW_FAILURE=true
  61. - node_js: "6.5"
  62. env: TEST=true ALLOW_FAILURE=true
  63. - node_js: "6.4"
  64. env: TEST=true ALLOW_FAILURE=true
  65. - node_js: "6.3"
  66. env: TEST=true ALLOW_FAILURE=true
  67. - node_js: "6.2"
  68. env: TEST=true ALLOW_FAILURE=true
  69. - node_js: "6.1"
  70. env: TEST=true ALLOW_FAILURE=true
  71. - node_js: "6.0"
  72. env: TEST=true ALLOW_FAILURE=true
  73. - node_js: "5.11"
  74. env: TEST=true ALLOW_FAILURE=true
  75. - node_js: "5.10"
  76. env: TEST=true ALLOW_FAILURE=true
  77. - node_js: "5.9"
  78. env: TEST=true ALLOW_FAILURE=true
  79. - node_js: "5.8"
  80. env: TEST=true ALLOW_FAILURE=true
  81. - node_js: "5.7"
  82. env: TEST=true ALLOW_FAILURE=true
  83. - node_js: "5.6"
  84. env: TEST=true ALLOW_FAILURE=true
  85. - node_js: "5.5"
  86. env: TEST=true ALLOW_FAILURE=true
  87. - node_js: "5.4"
  88. env: TEST=true ALLOW_FAILURE=true
  89. - node_js: "5.3"
  90. env: TEST=true ALLOW_FAILURE=true
  91. - node_js: "5.2"
  92. env: TEST=true ALLOW_FAILURE=true
  93. - node_js: "5.1"
  94. env: TEST=true ALLOW_FAILURE=true
  95. - node_js: "5.0"
  96. env: TEST=true ALLOW_FAILURE=true
  97. - node_js: "4.7"
  98. env: TEST=true ALLOW_FAILURE=true
  99. - node_js: "4.6"
  100. env: TEST=true ALLOW_FAILURE=true
  101. - node_js: "4.5"
  102. env: TEST=true ALLOW_FAILURE=true
  103. - node_js: "4.4"
  104. env: TEST=true ALLOW_FAILURE=true
  105. - node_js: "4.3"
  106. env: TEST=true ALLOW_FAILURE=true
  107. - node_js: "4.2"
  108. env: TEST=true ALLOW_FAILURE=true
  109. - node_js: "4.1"
  110. env: TEST=true ALLOW_FAILURE=true
  111. - node_js: "4.0"
  112. env: TEST=true ALLOW_FAILURE=true
  113. - node_js: "iojs-v3.2"
  114. env: TEST=true ALLOW_FAILURE=true
  115. - node_js: "iojs-v3.1"
  116. env: TEST=true ALLOW_FAILURE=true
  117. - node_js: "iojs-v3.0"
  118. env: TEST=true ALLOW_FAILURE=true
  119. - node_js: "iojs-v2.4"
  120. env: TEST=true ALLOW_FAILURE=true
  121. - node_js: "iojs-v2.3"
  122. env: TEST=true ALLOW_FAILURE=true
  123. - node_js: "iojs-v2.2"
  124. env: TEST=true ALLOW_FAILURE=true
  125. - node_js: "iojs-v2.1"
  126. env: TEST=true ALLOW_FAILURE=true
  127. - node_js: "iojs-v2.0"
  128. env: TEST=true ALLOW_FAILURE=true
  129. - node_js: "iojs-v1.7"
  130. env: TEST=true ALLOW_FAILURE=true
  131. - node_js: "iojs-v1.6"
  132. env: TEST=true ALLOW_FAILURE=true
  133. - node_js: "iojs-v1.5"
  134. env: TEST=true ALLOW_FAILURE=true
  135. - node_js: "iojs-v1.4"
  136. env: TEST=true ALLOW_FAILURE=true
  137. - node_js: "iojs-v1.3"
  138. env: TEST=true ALLOW_FAILURE=true
  139. - node_js: "iojs-v1.2"
  140. env: TEST=true ALLOW_FAILURE=true
  141. - node_js: "iojs-v1.1"
  142. env: TEST=true ALLOW_FAILURE=true
  143. - node_js: "iojs-v1.0"
  144. env: TEST=true ALLOW_FAILURE=true
  145. - node_js: "0.11"
  146. env: TEST=true ALLOW_FAILURE=true
  147. - node_js: "0.9"
  148. env: TEST=true ALLOW_FAILURE=true
  149. - node_js: "0.6"
  150. env: TEST=true ALLOW_FAILURE=true
  151. - node_js: "0.4"
  152. env: TEST=true ALLOW_FAILURE=true
  153. ##- node_js: "7"
  154. #env: TEST=true
  155. #os: osx
  156. #- node_js: "6"
  157. #env: TEST=true
  158. #os: osx
  159. #- node_js: "5"
  160. #env: TEST=true
  161. #os: osx
  162. #- node_js: "4"
  163. #env: TEST=true
  164. #os: osx
  165. #- node_js: "iojs"
  166. #env: TEST=true
  167. #os: osx
  168. #- node_js: "0.12"
  169. #env: TEST=true
  170. #os: osx
  171. #- node_js: "0.10"
  172. #env: TEST=true
  173. #os: osx
  174. #- node_js: "0.8"
  175. #env: TEST=true
  176. #os: osx
  177. allow_failures:
  178. - os: osx
  179. - env: TEST=true ALLOW_FAILURE=true