.travis.yml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. language: node_js
  2. os:
  3. - linux
  4. node_js:
  5. - "10.2"
  6. - "9.11"
  7. - "8.11"
  8. - "7.10"
  9. - "6.14"
  10. - "5.12"
  11. - "4.9"
  12. - "iojs-v3.3"
  13. - "iojs-v2.5"
  14. - "iojs-v1.8"
  15. - "0.12"
  16. - "0.10"
  17. - "0.8"
  18. - "0.6"
  19. cache:
  20. directories:
  21. - "$HOME/.npm"
  22. - "$(nvm cache dir)"
  23. - "$(nvm_version_path $(nvm_version_remote 0.4))"
  24. - "$(nvm_version_path $(nvm_version_remote 0.6))"
  25. - "$(nvm_version_path $(nvm_version_remote 0.10))"
  26. before_install:
  27. - 'case "${TRAVIS_NODE_VERSION}" in 0.*) export NPM_CONFIG_STRICT_SSL=false ;; esac'
  28. - 'nvm install-latest-npm'
  29. install:
  30. - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
  31. script:
  32. - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
  33. - 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
  34. - 'if [ -n "${COVERAGE-}" ]; then npm run coverage && bash <(curl -s https://codecov.io/bash) -f coverage/*.json; fi'
  35. - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
  36. sudo: false
  37. env:
  38. - TEST=true
  39. matrix:
  40. fast_finish: true
  41. include:
  42. - node_js: "lts/*"
  43. env: PRETEST=true
  44. - node_js: "lts/*"
  45. env: POSTTEST=true
  46. - node_js: "0.8"
  47. env: COVERAGE=true
  48. - node_js: "0.12"
  49. env: COVERAGE=true
  50. - node_js: "4"
  51. env: COVERAGE=true
  52. - node_js: "8"
  53. env: COVERAGE=true
  54. - node_js: "10.1"
  55. env: TEST=true ALLOW_FAILURE=true
  56. - node_js: "10.0"
  57. env: TEST=true ALLOW_FAILURE=true
  58. - node_js: "9.10"
  59. env: TEST=true ALLOW_FAILURE=true
  60. - node_js: "9.9"
  61. env: TEST=true ALLOW_FAILURE=true
  62. - node_js: "9.8"
  63. env: TEST=true ALLOW_FAILURE=true
  64. - node_js: "9.7"
  65. env: TEST=true ALLOW_FAILURE=true
  66. - node_js: "9.6"
  67. env: TEST=true ALLOW_FAILURE=true
  68. - node_js: "9.5"
  69. env: TEST=true ALLOW_FAILURE=true
  70. - node_js: "9.4"
  71. env: TEST=true ALLOW_FAILURE=true
  72. - node_js: "9.3"
  73. env: TEST=true ALLOW_FAILURE=true
  74. - node_js: "9.2"
  75. env: TEST=true ALLOW_FAILURE=true
  76. - node_js: "9.1"
  77. env: TEST=true ALLOW_FAILURE=true
  78. - node_js: "9.0"
  79. env: TEST=true ALLOW_FAILURE=true
  80. - node_js: "8.10"
  81. env: TEST=true ALLOW_FAILURE=true
  82. - node_js: "8.9"
  83. env: TEST=true ALLOW_FAILURE=true
  84. - node_js: "8.8"
  85. env: TEST=true ALLOW_FAILURE=true
  86. - node_js: "8.7"
  87. env: TEST=true ALLOW_FAILURE=true
  88. - node_js: "8.6"
  89. env: TEST=true ALLOW_FAILURE=true
  90. - node_js: "8.5"
  91. env: TEST=true ALLOW_FAILURE=true
  92. - node_js: "8.4"
  93. env: TEST=true ALLOW_FAILURE=true
  94. - node_js: "8.3"
  95. env: TEST=true ALLOW_FAILURE=true
  96. - node_js: "8.2"
  97. env: TEST=true ALLOW_FAILURE=true
  98. - node_js: "8.1"
  99. env: TEST=true ALLOW_FAILURE=true
  100. - node_js: "8.0"
  101. env: TEST=true ALLOW_FAILURE=true
  102. - node_js: "7.9"
  103. env: TEST=true ALLOW_FAILURE=true
  104. - node_js: "7.8"
  105. env: TEST=true ALLOW_FAILURE=true
  106. - node_js: "7.7"
  107. env: TEST=true ALLOW_FAILURE=true
  108. - node_js: "7.6"
  109. env: TEST=true ALLOW_FAILURE=true
  110. - node_js: "7.5"
  111. env: TEST=true ALLOW_FAILURE=true
  112. - node_js: "7.4"
  113. env: TEST=true ALLOW_FAILURE=true
  114. - node_js: "7.3"
  115. env: TEST=true ALLOW_FAILURE=true
  116. - node_js: "7.2"
  117. env: TEST=true ALLOW_FAILURE=true
  118. - node_js: "7.1"
  119. env: TEST=true ALLOW_FAILURE=true
  120. - node_js: "7.0"
  121. env: TEST=true ALLOW_FAILURE=true
  122. - node_js: "6.13"
  123. env: TEST=true ALLOW_FAILURE=true
  124. - node_js: "6.12"
  125. env: TEST=true ALLOW_FAILURE=true
  126. - node_js: "6.11"
  127. env: TEST=true ALLOW_FAILURE=true
  128. - node_js: "6.10"
  129. env: TEST=true ALLOW_FAILURE=true
  130. - node_js: "6.9"
  131. env: TEST=true ALLOW_FAILURE=true
  132. - node_js: "6.8"
  133. env: TEST=true ALLOW_FAILURE=true
  134. - node_js: "6.7"
  135. env: TEST=true ALLOW_FAILURE=true
  136. - node_js: "6.6"
  137. env: TEST=true ALLOW_FAILURE=true
  138. - node_js: "6.5"
  139. env: TEST=true ALLOW_FAILURE=true
  140. - node_js: "6.4"
  141. env: TEST=true ALLOW_FAILURE=true
  142. - node_js: "6.3"
  143. env: TEST=true ALLOW_FAILURE=true
  144. - node_js: "6.2"
  145. env: TEST=true ALLOW_FAILURE=true
  146. - node_js: "6.1"
  147. env: TEST=true ALLOW_FAILURE=true
  148. - node_js: "6.0"
  149. env: TEST=true ALLOW_FAILURE=true
  150. - node_js: "5.11"
  151. env: TEST=true ALLOW_FAILURE=true
  152. - node_js: "5.10"
  153. env: TEST=true ALLOW_FAILURE=true
  154. - node_js: "5.9"
  155. env: TEST=true ALLOW_FAILURE=true
  156. - node_js: "5.8"
  157. env: TEST=true ALLOW_FAILURE=true
  158. - node_js: "5.7"
  159. env: TEST=true ALLOW_FAILURE=true
  160. - node_js: "5.6"
  161. env: TEST=true ALLOW_FAILURE=true
  162. - node_js: "5.5"
  163. env: TEST=true ALLOW_FAILURE=true
  164. - node_js: "5.4"
  165. env: TEST=true ALLOW_FAILURE=true
  166. - node_js: "5.3"
  167. env: TEST=true ALLOW_FAILURE=true
  168. - node_js: "5.2"
  169. env: TEST=true ALLOW_FAILURE=true
  170. - node_js: "5.1"
  171. env: TEST=true ALLOW_FAILURE=true
  172. - node_js: "5.0"
  173. env: TEST=true ALLOW_FAILURE=true
  174. - node_js: "4.8"
  175. env: TEST=true ALLOW_FAILURE=true
  176. - node_js: "4.7"
  177. env: TEST=true ALLOW_FAILURE=true
  178. - node_js: "4.6"
  179. env: TEST=true ALLOW_FAILURE=true
  180. - node_js: "4.5"
  181. env: TEST=true ALLOW_FAILURE=true
  182. - node_js: "4.4"
  183. env: TEST=true ALLOW_FAILURE=true
  184. - node_js: "4.3"
  185. env: TEST=true ALLOW_FAILURE=true
  186. - node_js: "4.2"
  187. env: TEST=true ALLOW_FAILURE=true
  188. - node_js: "4.1"
  189. env: TEST=true ALLOW_FAILURE=true
  190. - node_js: "4.0"
  191. env: TEST=true ALLOW_FAILURE=true
  192. - node_js: "iojs-v3.2"
  193. env: TEST=true ALLOW_FAILURE=true
  194. - node_js: "iojs-v3.1"
  195. env: TEST=true ALLOW_FAILURE=true
  196. - node_js: "iojs-v3.0"
  197. env: TEST=true ALLOW_FAILURE=true
  198. - node_js: "iojs-v2.4"
  199. env: TEST=true ALLOW_FAILURE=true
  200. - node_js: "iojs-v2.3"
  201. env: TEST=true ALLOW_FAILURE=true
  202. - node_js: "iojs-v2.2"
  203. env: TEST=true ALLOW_FAILURE=true
  204. - node_js: "iojs-v2.1"
  205. env: TEST=true ALLOW_FAILURE=true
  206. - node_js: "iojs-v2.0"
  207. env: TEST=true ALLOW_FAILURE=true
  208. - node_js: "iojs-v1.7"
  209. env: TEST=true ALLOW_FAILURE=true
  210. - node_js: "iojs-v1.6"
  211. env: TEST=true ALLOW_FAILURE=true
  212. - node_js: "iojs-v1.5"
  213. env: TEST=true ALLOW_FAILURE=true
  214. - node_js: "iojs-v1.4"
  215. env: TEST=true ALLOW_FAILURE=true
  216. - node_js: "iojs-v1.3"
  217. env: TEST=true ALLOW_FAILURE=true
  218. - node_js: "iojs-v1.2"
  219. env: TEST=true ALLOW_FAILURE=true
  220. - node_js: "iojs-v1.1"
  221. env: TEST=true ALLOW_FAILURE=true
  222. - node_js: "iojs-v1.0"
  223. env: TEST=true ALLOW_FAILURE=true
  224. - node_js: "0.11"
  225. env: TEST=true ALLOW_FAILURE=true
  226. - node_js: "0.9"
  227. env: TEST=true ALLOW_FAILURE=true
  228. - node_js: "0.4"
  229. env: TEST=true ALLOW_FAILURE=true
  230. allow_failures:
  231. - os: osx
  232. - env: TEST=true ALLOW_FAILURE=true