You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

182 lines
5.4 KiB

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